Introduction to Computer Science 1 (CSCS2101)
Mathematics and Computer Science - MCS
Semester: First Semester
Level: 200
Year: 2016
REPUBLIC OF CAMEROON
Peace
-
Work
-
Fatherland
MINISTRY OF HIGHER EDUCATION
REPUBLIQUE DU CAMEROUN
Paix — Travail — Patrie
MINISTRE DE L'ENSEIGNEMENT
SUPERIEURE
THE UNIVERSITY OF BAMENDA
- UNIVERSITE DE BAM'ENDA
FACULTY OF SCIENCE
P.O
Box 39 BAMBILI
TEL: (+23) 22 81 63 50
FACULTE DES SCIENCES
FIRST SEMESTER EXAMINATION — 2015/2016 SESSION
DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
COURSE
TITLE: INTRODUCTION TO COMPUTER SCIENCE I I
COURSE CODE: CSCS2202
For the multiple choice questions, please choose from options a-d and note that only one of
these options is the correct answer.
NB: Please answer all questions
Section A
1) The well-defined set of building blocks from which algorithm representations can be
created are referred to as: 1 mark
(a )
The Programming Language
(b )
The Ps eudocod es
(c )
The Assignment Statements
(d )
The Primitives
2) C programming language is a powerful: I mark
(a )
Object oriented language
(b )
Sc rip ti ng lan guage
(c )
Procedural language
(d )
Functional language
3) Constants are frequently referred to as: l mark
(a) Read-write variables
(b )
Write-read vari ables
(c )
Read-only memory
(d )
Read-only variables
4) A collection of primitives along with a collection of rules stating how the primitives can
be combined to represent more complex ideas constitutes: I mark
(a)
A modular programming language
(b)
A progr ammin g language
(c)
A procedural language
(d)
A scriptin g l an guage
5) A collection of related fields that can be treated as a unit by some application programs
is referred to as: I mark
( a )
F i e l d
( b )
F i l e
(c) Database
(d) Record
www.schoolfaqs.net
6) The process of conveying control to a procedure is generally known as: 1 mark
(a )
The callin g procedure
(b )
The refreshing procedure
(c )
th e i nv oking unit
(d )
None of the above
Section B
1)
Describe how the use of primitives helps remove ambiguities in an algorithm's
representation. 5 marks
2)
Discuss the term algorithm and state why it is fundamental within the field of computer
science. 5 marks
3)
Explain the concept of recursive structures. 6 marks
4)
Identify and correct the en
-
or(s) found within this simple program. 5 marks
#include <stdo.h>
main()
{
/*This is my
first program*/
/ This program is going to demonstrate how to use the printf and scanf functions
Int pin
printf("Please type in your PINT\n");
scan("%d",pin);
piintf("Your access code is %(Ni",pin)
5)
What makes the main 0 function unique from other functions? 3 marks
6) Please state and brief1y explain three vital benefits that incremental development has over
the waterfall model. 9.marks (3,3,3)
7)
Write a simple C program that can be used to print information (contents of variables) with
the following data types: an integer, a floating-point number and a character. You should
use comments to explain your code. 10 marks
8)
What is software development? 2 marks
9)
Differentiate between real-time systems and (2.eneral-purpose systems. 4 marks
10)
Discuss the concept of user-defined data types and use example(s) to support your discussion.
8 marks
11) Explain the principle of software validation. 10 marks
www.schoolfaqs.net
www.schoolfaqs.net