ZVINOWANDA S 0777 779 084
NC1 COMPUTER SYSTEMS C PROGRAMMING
THEORY 1
DUE DATE 13 August 2024 9am
QUESTION 1
What are features of C language (8marks)
QUESTION 2
Name any 7 data types in C programming (7marks)
QUESTION 3
What is variable initialization and why is it important? (5marks)
QUESTION 4
Which of the following operators is incorrect and why?
>= , <= , <>, ==
(5marks)
ZVINOWANDA S 0777 779 084
THEORY 2
DUE DATE 22 AUGUST 2023 9am
QUESTION 1
In C language, the variables NAME, name, and Name are all the same. TRUE
or FALSE? (5marks)
QUESTION 2
What are comments and how do you insert it in a C program? (5marks)
QUESTION 3
Describe the for loop, write its format and write an example of a code that uses this
loop . (15marks)
ZVINOWANDA S 0777 779 084
PRACTICAL 1
DUE DATE 27 AUGUST 2024 9am
QUESTION 1
What is the difference between the = symbol and == symbol? (5marks)
QUESTION 2
How do you declare a variable that will hold string values? (5marks)
QUESTION 3
How do you access the values within an array? (5marks)
QUESTION 4
Write a loop statement that will show the following output:
1
12
123
1234
12345 (10marks)
ZVINOWANDA S 0777 779 084
PRACTICAL 2
DUE DATE 30 AUGUST 2024 9am
QUESTION 1
What are reserved words? (4marks)
QUESTION 2
What is a newline escape sequence? (4marks)
QUESTION 3
Write a simple code fragment that will check if a number is positive or negative
(7marks)
QUESTION 4
Write a program using do whlile loop to give the following output
x= 1
x= 2
x= 3 (10marks)