Structured Programming Exam - Jaramogi Oginga Odinga University

Document Details

FerventSteelDrums2768

Uploaded by FerventSteelDrums2768

Jaramogi Oginga Odinga University of Science and Technology

Tags

structured programming C programming computer science programming exam

Summary

This is a structured programming exam paper from Jaramogi Oginga Odinga University. The exam covers various topics in C programming, including components of a C program and loops. The paper consists of multiple questions and requires the usage of C programming concepts.

Full Transcript

JARAMOGI OGINGA ODINGA UNIVERSITY OF SCIENCE AND TECHNOLOGY SCHOOL OF INFORMATICS AND INNOVATIVE SYSTEMS DEPARTMENT OF INFORMATION COMMUNICATION TECHNOLOGY FIRST YEAR, SECOND...

JARAMOGI OGINGA ODINGA UNIVERSITY OF SCIENCE AND TECHNOLOGY SCHOOL OF INFORMATICS AND INNOVATIVE SYSTEMS DEPARTMENT OF INFORMATION COMMUNICATION TECHNOLOGY FIRST YEAR, SECOND SEMESTER STRUCTURED PROGRAMMING TIME: 2 hours INSTRUCTIONS: Attempt Question 1 (compulsory - 30 marks) and any other TWO Questions (20 marks each). Question One a) Explain the following components a C program. (6mks) i) Statements ii) Reserved words iii) Comments b) i) Indicate the first and the final values of i output by this loop. (2mks) n=10;i=0; do { printf(“%d”,i); } while (++i

Use Quizgecko on...
Browser
Browser