GET 211 Exam
GET 211 Exam
(c) (i) Draw a basic flowchart diagram of at least six symbols, state functions of the symbols
(ii) Mention two advantages of using flowcharts
(d) You are given a list of four students, the students’ names and their test scores in
computer programming course.
Design an Algorithm and Draw a flow chart that does the following;
(i) Calculates the average test score
(ii) Determines and prints the name of all students whose test score is below the average test
score
(iii) Determines and prints the highest test score
(25 marks)
2(a) Explain briefly the meaning of the following terminologies:
Pseudocode, Program Design, IPO, Water fall model, V shaped model
(b) With the aid of a well labelled diagram explain what you understand by Software
Development Lifecycle.
(c) Explain all steps in the programming process.
(d) Write a pseudocode and draw a flowchart where multiple conditions are checked to
categorise a person as either child (<13), teenager (>=13 but <20) or adult (>=20),
based age specified (20 marks)
5 4 9 12 8
(25marks)
5(a) Find the output of the given C program
#include<stdio.h>
int main()
{
int a=4,b,c;
b = --a;
c = a--;
printf("%d %d %d",a,b,c);
return 0;
}
(b) Find the output of the given C program
#include<stdio.h>
int main()
{
int i = 0;
int j ;
j = (i=i+1, i=i+2, i=i+3);
printf("%d",j);
return 0;
}