CS1010 AY2021 Answer Sheet, Exams of Computer Science

This is just the answer sheet for the midterm of AY20-21. If you want py papers, please email me.

Typology: Exams

2015/2016

Uploaded on 01/16/2025

captainmudkipv-yt
captainmudkipv-yt 🇸🇬

2 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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