Go to NUS website Go to SoC website CS1010 Programming Methodology
   Designed by Aaron Tan | Terms of Use © NUS 2010-2019  

Module Info...
 Description
 Staff
 Schedules
 CA
 Policies

Resources...
 Books
 Online
 Lectures
 Errata

CA...
 Discussion
 Labs
 PE
 Term Tests
 Exams

Misc...
 Quizzes
 Practice
 Info
 Freshmen
 Articles

AY2019/20 Semester 1
Miscellaneous - Practice Exercises

These are ungraded practice exercises for your own attempt. They are mounted on CodeCrunch, with number of submissions set to 99.

If you have any queries on these exercises, please post them on the appropriate LumiNUS or Telegram chatroom.

Set No. Prob. No.DirectoryZipTask description Reference Objectives Week of release
(Mon, 8am)
1 1 Freezer Temperature Unit 4 Ex#5 C basics 3
1 2 Freezer Temperature (version 2) Unit 4 Ex#6 C basics, math function 3
2 1 Speed of Sound Unit 5 Writing function, using math function 4
2 2 Magic Number Unit 5 Writing function 4
2 3 NRIC Check Code Unit 6 Selection statement (switch) 4
2 4 Taxi Fare Unit 6 Selection statement (if-else) 4
2 5 Ascending Hundreds-digits of 3 Integers Unit 6 Selection statement, logical operator 4
2 6 Days Since 1 Jan 2016 Unit 6 Selection statement (switch) 4
2 7 Ordinal Suffix Unit 6 Selection statement 4
3 1 Prime Number Unit 6 Repetition statement 4
3 2 Input Data Validation Unit 6 Repetition statement 4
3 3 Count Input Values Unit 6 Repetition statement, scanf() 4
3 4 Count number of primes Unit 6 Repetition statement 4
3 5 Count numbers not divisible by 2 divisors Unit 6 Repetition statement 4
3 6 Count pairs of coprime numbers Unit 6 Repetition statement 4
3 7 Multiples of 5 or 7 Units 5,6 Revision: Function, repetition and selection statements 4
3 8 Perfect Number Units 5,6 Revision: Function, repetition and selection statements 4
3 9 Increasing Order Units 5,6 Revision: Repetition and selection statements 4
4 1 Which Century?   Past year PE1 question 5
4 2 Who Are the Winners?   Past year PE1 question 5
4 3 Computing SAT and IQ Scores   Past year PE1 question 5
4 4 Identifying Undergrad Cards   Past year PE1 question 5
4 5 Tray and Slabs   Past year PE1 question 5
4 6 Parking Fee   Past year PE1 question 5
4 7 Happy Number   Past year PE1 question 5
5 1 Pointers Unit 7 Pointers 5
5 2 Set Containment Unit 8 Array 5
5 3 Rabbit Jumps Unit 8 Array 5
5 4 Partition Unit 8 Array 5
5 5 Pie Unit 8 Array 5
5 6 Pie (Speed Challenge!) Unit 8 Array 5
5 7 Sound Processing I: Echo Unit 8 Array 5
5 8 Sound Processing II: Speed Change Unit 8 Array 5
6 1 Matrix Multiplication Unit 9 2D array 6
6 2 Valid Path Unit 9 2D array 6
6 3 Diagonal Matrix and Upper Triangular Matrix Unit 9 2D array 6
6 4 Magic Square Unit 9 2D array 6
6 5 Friendship Relations Unit 9 2D array 6
6 6 Pyramid Unit 9 2D array 6
6 7 Image Processing I: Flipping Unit 9 2D array 6
6 8 Image Processing II: Rotation Unit 9 2D array 6
- - Starry Starry Night Unit 13 Separate Compilation
(Note that you must name your programs correctly as there are more than one file required for this exercise.)
7
7 1 Triangle Centroid Unit 4 Function with pointer parameters 8
7 2 Arithmetic Mean and Geometric Mean Unit 14 Function with pointer parameters 8
7 3 Surface Area and Volume Unit 14 Function with pointer parameters 8
7 4 Find Pair Units 8,14 Array, function with pointer parameters 8
7 5 Hourglass Unit 14 Function with pointer parameters, problem solving 8
7 6 Triangle Incenter Unit 14 Function with pointer parameters 8
7 7 Flood! Units 9,14 2D array, function with pointer parameters 8
8 1 Summing Digit Characters Unit 16 Character functions 9
8 2 Count Number of Words Unit 16 Character functions 9
8 3 Count String in a Text Unit 16 String functions 9
8 4 Palindrome Unit 16 String functions 9
8 5 Pig Latin Unit 16 String 9
8 6 Minesweeper Units 9,16 2D array, string 9
8 7 InfoSec and Cryptography I: ROT-13 Unit 16 Characters and Strings 9
8 8 InfoSec and Cryptography II: Transposition Units 9,16 2D array, Characters and Strings 9
9 1 Change NUSNET Password Unit 16 Past year PE2 question 10
9 2 Poker Game Unit 8 Past year PE2 question 10
9 3 Name Compatibility Unit 16 Past year PE2 question 10
9 4 Most Frequent Letter n-gram Unit 16 Past year PE2 question 10
9 5 2048 Game Unit 9 Past year PE2 question 10
10 1 Sum Digits in an Integer Unit 17 Recursion 10
10 2 Sum Array Units 17,8 Recursion, array 10
10 3 Largest Digit Pair Unit 17 Recursion 10
10 4 North-East Paths Unit 17 Recursion 10
10 5 Christmas Presents Unit 17 Recursion 10
10 6 Reverse Array Units 17,8 Recursion 10
11 1 Points Units 8,15 Array of structures 11
11 2 Health Screen Units 8,15 Array of structures 11
11 3 Tiles Units 8,15 Array of structures 11
11 4 CAP Unit 15 Structures 11
11 5 Class Schedule Units 8,15 Array of structures 11
12 1 Points and Lines Revision Sorting 12
12 2 Module Sorting Revision Sorting 12
12 3 Anagrams Revision Sorting 12
12 4 Search for 2D Pattern Revision Searching, 2D array 12
12 5 Prize Revision Structures, searching and sorting 12
12 6 Pixels Revision Array, searching and sorting 12
12 7 Pixels (Speed Challenge!) Revision Array, searching and sorting 12
12 8 Database I: Database Queries Revision Structures, searching and sorting 12
12 9 Database II: Database Operations Revision Structures, searching and sorting 12


Last updated: 5 November 2017