You are definitely having trouble dedenting the code from the PDF.
Russell, 2021
This repository provides the Python file (.py) template to the past CS1010S, CS1010X, and CS1010FC finals if one decides to do it using Python IDE. Regardless, in the real final examination, Python IDE is not allowed for use and students are to do it by hand, i.e. write the code down on paper or use Examplify and type it manually without any debugging/compiling if online.
Please note that the answers and solutions are NOT provided for obvious reasons.
- I will not focus on code tracing questions but still provide empty spaces for these questions. This is because the code has to be run line-by-line on Python Shell instead of IDE, thus it may give different results.
- If you are reading this during finals, I wish you all the best for it! Also, feel free to fork or contribute by opening a pull request!
- Back to top
- The main content of the workbin. The format of each paper is by far the same.
- Question 1: Code Tracing
Revolves around string, sequences, exception handling, if-else clauses, and lambdas.
- Question 2: List/Tuple Processing
- Question 3: Dictionary Processing
- Question 4: Object-Oriented Programming
Revolves around inheritance, polymorphism, and diamond inheritance.
- Question 5 (not provided in the template file): Course Reflection
- Question 1: Code Tracing
- Currently, this repository provides the template file for the following finals paper:
Source Q2 Q3 Q4 CS1010S November 2013 list processing with f1-f5 limited count change sparse and dense matrix OOP CS1010S April 2014 Harry Potter inventory ADT Still Harry Potter inventory ADT buddy robot OOP CS1010S November 2014 staircases and pyramids secret message OOP to infinity and beyond! CS1010S April 2015 shopping coupons fly breeding How to Train Your Dragon OOP CS1010S November 2015 football data ballot boxes and votes Despicable Me OOP CS1010S April 2016 priority queues heaps Star Wars OOP CS1010S November 2016 stock prices travelling routes Pokemon OOP CS1010S April 2017 Bingo battleship cars, trains, railcars OOP CS1010S November 2017 connect four (Toot and Otto) containers UberJiak planes OOP CS1010S April 2018 Jenga T9 (text on 9 keys) UberJiak vehicles OOP CS1010S November 2018 weed growing n-segment display
(digital segments)pickup truck OOP CS1010S April 2019 tetrominos (Tetris) family tree IPod and IPhone OOP CS1010S November 2019 Scrabble Still Scrabble sports and police car OOP
(using siren and nitro)CS1010S April 2020 COVID Sweeper (Minesweeper rip-off) count change with memo troopers OOP CS1010S November 2020 PSLE scoring trie structure Among Us OOP CS1010S April 2021 Blockchain string hashing Scrabble tiles My Little Pony OOP CS1010S November 2021 Dalgona candy Rock papers scissors Student Worker OOP CS1010S April 2022 Image processing DNA fragments TDD Team OOP CS1010S November 2022 Pallankuzhi Board Game Inventory and catalog Maritime shipping OOP CS1010S April 2023 Rubik's Cube Library books NUS Staff OOP CS1010A November 2023 Queues Snakes and Ladders Star Wars TESB OOP CS1010S November 2023 Networks Student Database TotK OOP CS1010S April 2024 Deep hierarchy of integers Bingo cards 2-SAT CSP
- Back to top
- Some questions expect you to define a function using C programming language. I will provide the Python version of the blank code instead.
- Currently, this repository provides the template file for the following finals paper:
Source Keyword 1 Keyword 2 Keyword 3 June 2016 deep copy paths and DP in-place quicksort June 2017 filter with memo and fib list chains reverse sort June 2018 BST list undos list interleaving June 2019 triangle paths and DP multiset OOP pancake sort
- Back to top
- Some questions expect you to define a function using C programming language. I will provide the Python version of the blank code instead.
- Currently, this repository provides the template file for the following finals paper:
Source Keyword 1 Keyword 2 June 2014 mapf, mapv iterative count change June 2015 number set sum foo bar sorting