CSC 208 PROGRAMMING IN PYTHON AND C Exam 2024
About this paper
CSC 208: End-of-Semester Examination, Tuesday 25/06/2024, University of Buea, Faculty of Science, Dept of Computer Science (graded DANNY-DOC scan): Section A, new content -- 10 justified Yes/No items, a 10-blank data-types/struct/array/file/function fill-in paragraph, 5 C-declaration items, a 5-blank GenerateNumber() fill-in-the-code exercise (blank (d) flagged: a bare 'continue;' alone would loop forever at k1=11 since 'k1++' sits outside the if-block in the source -- resolved as 'k1++; continue;' with the reasoning given in full), and a complete count.txt-writing C program. Section B (Python, Part I MCQ + Part II short questions) is word-for-word identical to Paper 6's Section B and is cross-referenced there rather than reprinted or re-derived.
Opens this paper in the app on your phone.
University of Buea
Faculty of Science - FS
Computer Science - CSC
PROGRAMMING IN PYTHON AND C
Exam · Second Semester · Level 200
From this paper
- 5.
Write a complete C program which stores numbers from 1 to N in a text file called count.txt line by line. The user enters a positive value for N, and the computer writes from 1 to that value in this file. (5 marks)
At a glance
- Course code
- CSC208 (CSC 208)
- Type
- Exam
- Year
- 2024
- Level
- Level 200
- Semester
- Second Semester
- Proposed solution
- Included
Where it's from
University
University of BueaFaculty
Faculty of Science - FSDepartment
Computer Science - CSCMathematics - MATPhysics - PHY
Read CSC208 2024 in Shoracy.
- Every page, with zoom for diagrams and small print
- The proposed solution, one tap away
- Stays on your phone after the first open, even offline
Don't have the app yet?