0% found this document useful (0 votes)
142 views4 pages

GET 211 Exam

The document outlines the examination structure for the Computer Programming course at Bamidele Olumilua University, detailing the instructions for answering questions in two sections. It includes various topics such as computer programming terminologies, flowchart creation, algorithm design, and C++ programming tasks. The examination assesses students' understanding of programming concepts, software development lifecycle, and practical coding skills.

Uploaded by

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

GET 211 Exam

The document outlines the examination structure for the Computer Programming course at Bamidele Olumilua University, detailing the instructions for answering questions in two sections. It includes various topics such as computer programming terminologies, flowchart creation, algorithm design, and C++ programming tasks. The examination assesses students' understanding of programming concepts, software development lifecycle, and practical coding skills.

Uploaded by

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

BAMIDELE OLUMILUA UNIVERSITY OF EDUCATION, SCIENCE AND

TECHNOLOGY, IKERE-EKITI (BOUESTI)


FACULTY OF ENGINEERING
FIRST SEMESTER 2021/2022 ACADEMIC SESSION EXAMINATION FOR 200 LEVEL
DEPARTMENT: CIVIL/ELECT/ELECT ENGINEERING
COURSE TITLE: COMPUTER PROGRAMMING (GET 211)
TIME ALLOWED: 2 HOURS
INSTRUCTION: SECTION A - ANSWER QUESTION 1 AND ANY OTHER
SECTION B - ANSWER ONLY ONE QUESTION
SECTION A
1(a) Explain briefly the meaning of the following terminologies
Computer Programming, Compiler, Machine language, Algorithm, Flowchart
(b)

(i) Identify the software model indicated by the diagram above


(ii) Expain how the software model operates
(iii) Mention one advantage of the software model

(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)

3(a) Explain briefly the meaning of the following


Input device, Debugging, IDE, Programming language, Translators.
(b) Procedural Programming and Object Oriented Programming are two types of
Programming techniques. Explain, state their differences and give examples of each.
(c) There are three basic control structures in flowchart. Explain and illustrate with diagrams
(d) Write an algorithm to calculate area and circumference of a circle, using both
pseudocode and flowchart.
(20 marks)
EXAMINATION QUESTION
SECTION B (ANSWER ONLY ONE QUESTION)
Answer the following questions.
4(a) Write a C++ program to find the largest element of a given array of integers

5 4 9 12 8

(b) What will be the output of this expression?


int a[5] = { 4, 2, 6, 1, -3, -4, -7}

(c) What is the output of the given C program


#include<stdio.h>
int main()
{
int x=55, y=20, a;
a = (x == 55 || y>20);
printf("%d ", a);
return 0;
}
(d Briefly explain an array and an example of an initialization with a string
(e) Describe the variables in C? List the four basic data types associated with variables?

(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;
}

(c) Find the output of the given C program


#include<stdio.h>
int main()
{
int i = 1;
int j ;
j = (i=i+8, i%5);
printf("%d",j);
return 0;
}
(d) What is the output of the given C program?
#include<stdio.h>
int main()
{
float a, c;
int b;
a = 5;
b = 2;
c = a % b;
printf("%f", c);
return 0;
}
(e) Find the output of the given C program
#include<stdio.h>
int main()
{
int a=2;
a+=3;
printf("%d",a);
return 0;
}
(25marks)

You might also like