Docsity

CS1010 AY2021 Answer Sheet, Exams of Computer Science

Toggle sidebar
bg1
NUS SCHOOL OF COMPUTING
MIDTERM ASSESSMENT ANSWER SHEET
CS1010 Programming Methodology
Semester 1 2023/24 Time Allowed 80 Minutes
DO NOT WRITE
IN THIS MARGIN
1. 2. 3. 4. 5.
6. 7. 8. 9. 10.
11. The algorithm computes
.......................................................................................
.......................................................................................
12. The flowchart is
pf2

Partial preview of the text

Download CS1010 AY2021 Answer Sheet and more Exams Computer Science in PDF only on Docsity!

NUS SCHOOL OF COMPUTING

MIDTERM ASSESSMENT ANSWER SHEET

CS1010 Programming Methodology

Semester 1 2023/24 Time Allowed 80 Minutes

DO NOT WRITE IN THIS MARGIN

  1. The algorithm computes ....................................................................................... .......................................................................................

  2. The flowchart is

DO NOT WRITE IN THIS MARGIN

  1. Recursion. condition is ....................................................................................... statement1 is ....................................................................................... statement2 is .......................................................................................
  2. Invariant. (a) The invariant is

(b) Because

................................................................................... ...................................................................................

(c) Because

................................................................................... ................................................................................... ................................................................................... ................................................................................... ................................................................................... ................................................................................... ...................................................................................

END OF ANSWER SHEET

Page 2