📘 Access 10,000+ CBC Exams With Marking Schemes

Prepare your learners for success! Get CBC-aligned exams for Grades 1–9, PP1–PP2, Playgroup and High School - all with marking schemes.

Browse Exams

Instant download • Trusted by 100,000+ teachers • Updated weekly

Introduction To Computer Science Question Paper

Introduction To Computer Science 

Course:Bachelor Of Science

Institution: Moi University question papers

Exam Year:



MOI UNIVERSITY
UNIVERSITY EXAMINATIONS
2002/2003 ACADEMIC YEAR
2nd YEAR SECOND SEMESTER EXAMINATIONS
FOR THE DEGREE OF
BACHELOR OF SCIENCE

Course Title: INTRODUCTION TO COMPUTER SCIENCE
Instruction to Candidates

Answer All Questions in Section A and any Three Questions from Section B

1. (a) What is meant by the following
(i) Input devices
(ii) Output devices
(iii) Storage devices [3 marks]

(b) Describe how data is held in the following storage media
(i) Magnetic tape
(ii) Paper tape

(c) Give the data types in programming and show how they are differentiated in BASIC [6 marks]

2. (a) Give the advantages of using a computer in processing data [4 marks]

(b) Distinguish between
(i) Software and Hardware
(ii) Assembly language and machine language [4 marks]

(c)(i) Distinguish between an integer and a real number
(ii) Explain how a real number is represented in the computer. [5 marks]

3. (a) Outline the functions of the components of the computer central processing unit. [3 marks]
(b) Evaluate the following in Binary
(i) 17 + 15 [2 marks]
(ii) 17 - 5 [2 marks]
(iii) 15 - 19 [1 marks]
(c) Illustrate the use of INT and MOD funcions in a program to take seconds and display their equivalent in Hours, Minutes and Seconds. [4 marks]<br
4. (a) What is an array as applied in programming. [2 marks]
(b) Ten students have taken an examination in three subjects. Write a program to take the scores and display the highest and the lowest scores for each student. [7 marks]
(c) Describe two methods of searching. [4 marks]

5. (a) Explain how the following are used in BASIC
(i) VDL
(ii) MIDS
(iii) LEFTS
(iv) RIGHTS
(v) LEN [5 marks]
(b) Given a string of characters write a program to take the string and
(i) repeat the number of occurances of a given character in it. [5 marks]
(ii) Display the string in reverse order. [3 marks]

6. (a) Distinguish between a function and a subroutine [1 mark]
(b) Define a function to takeX and evaluation of Y according to the expression
Y=x2 + x + 1 [3 marks]
(c) (i) Include the functon in a subroutine, display the values of Y for values of X in interval 0 to 5 in steps of 0.5 [5 marks]
(ii) Modify the program to display the mean value of Y up m.

7. (a) Differentiate between a random file and a sequence file. [4 marks]
(b) The following details of spares are held in a manual file:

Field Width
Part numbet 5 AS
Description 25 BS
Buying price 8 CS
Selling price 8 DS

(c) Write a program to take details of 10 spares and send them to
(i) a sequential file [3 marks]
(ii) a random file [3 marks]
(d) Provide another program to display the contenets of the sequential file. [3 marks]






More Question Papers


Exams With Marking Schemes

End Term 3 Exams

Mid Term Exams

End Term 1 Exams

Opener Exams

Full Set Exams



Return to Question Papers