0% found this document useful (0 votes)
446 views3 pages

Cit301 2024 - 1

The document outlines the examination details for the course CIT301: Structured Programming at the National Open University of Nigeria, including instructions, course credit, and time allowed. It contains a series of questions covering topics such as the differentiation between functions and procedures, programming mistakes, control statements, and C programming syntax. Students are required to answer question 1 and any three additional questions from the provided list.

Uploaded by

Michael Owoh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
446 views3 pages

Cit301 2024 - 1

The document outlines the examination details for the course CIT301: Structured Programming at the National Open University of Nigeria, including instructions, course credit, and time allowed. It contains a series of questions covering topics such as the differentiation between functions and procedures, programming mistakes, control statements, and C programming syntax. Students are required to answer question 1 and any three additional questions from the provided list.

Uploaded by

Michael Owoh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Study Centre: Emevor Community Study Centre (DE02)

NATIONAL OPEN UNIVERSITY OF NIGERIA


PLOT 91, CADASTRAL ZONE, NNAMDI AZIKIWE EXPRESSSWAY, JABI-ABUJA

FACULTY OF SCIENCES
DEPARTMENT OF COMPUTER SCIENCE
2024_1 EXAMINATION 2024MAY

COURSE CODE: CIT301

COURSE TITLE: STRUCTURED PROGRAMMING

COURSE CREDIT: 3 UNITS

TIME ALLOWED: 2 HOURS

INSTRUCTION: ANSWER QUESTION 1 AND ANY OTHER THREE QUESTIONS

Q1.
(a) Differentiate between a function and a procedure?
2 marks
(b) List any 10 keywords in C?
5 marks
(c) Describe 4 elements of structured programming?
4 marks
(d) You are invited by a social works group to automate the cleaning of a client’s kitchen.
Using the first four phases of program development and respective tools, practically illustrate
this process.
14 marks

Q2.
(a) In a table distinguish using 4 characteristics, structured and unstructured programming?
8 marks

(b) Discuss 5 programming mistakes that can trigger semantic/logic errors?


5 marks
(c) List 4 advantages of assembly languages?
2 marks

Download more at: www.puredu.net


Study Centre: Emevor Community Study Centre (DE02)

Q3.
(a) What is an expression? Give 2 examples.
5 marks
(b) List 6 operators used in C programming language?
3 marks
(c) Given the mathematical expression: S + 3 x Y – 1, where S = 5 and Y = 34.
Reconstruct the expression in C format and evaluate it. Reconstruct the express such that the
result will be 271.
4 marks
(d) With a diagram, classify control statements?
3 marks

Q4.
(a) Differentiate between if and if else statements in C programming language using
diagram ONLY.
4 marks

(b) Write a sample C code for illustrating a function that accepts two arguments, and
returns values.
4 marks
(c) For each segment describing the basic structure of a C program below, give an
example to qualify each segment?

Download more at: www.puredu.net


Study Centre: Emevor Community Study Centre (DE02)

7 marks

Q5.
(a) Write syntax segments illustrating the switch and if else if statements in C? Give
examples?
10 marks

(b) Write a C function to multiply the series: -10, -20, -30, …, n


5 marks
Q6.
(a) Write a simple class to prepare a dish?
6 marks
(b) Why is the main program in C compulsory? Construct the structure of the main
program?
6 marks
(c) List 3 requirements of a function prototype?
3 marks

Download more at: www.puredu.net

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy