Exam2024Proposed solution included

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.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

Faculty of Science - FS

Computer Science - CSC

CSC2082024

PROGRAMMING IN PYTHON AND C

Exam · Second Semester · Level 200

From this paper

  1. 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)

Open in the app to read the full paper and its proposed solution.

View solutionOpen in Shoracy

At a glance

Course code
CSC208 (CSC 208)
Type
Exam
Year
2024
Level
Level 200
Semester
Second Semester
Proposed solution
Included

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
Open in Shoracy