Introduction to Computer Science 1 (CSCS2101)

Mathematics and Computer Science - MCS

Semester: First Semester

Level: 200

Year: 2018

THE UNIVERSITY OF BAMENDA FACULTY OF SCIENCE
DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE
END-OF-FIRST SEMESTER - EXAMINATION 2017/201S CSCS2101: INTRO TO COMPUTER SCIENCE I
ANSWER ALL QUESTIONS TIME ALLOWED: 2 H
NB: For the MCQs, choose from options a-d and note that only one of these options is the correct answer
EXAMINER: Dr S C Forbacha
Section A
1) A mnemonic system for representing programs is collectively called: 1 mark
(a) A machine language
(b) An assembly language
(c) A high-level language
(d) A machine independent language
2) The computer's main memory is organised into individual: 1 mark
t
(a) Addressable cells
(b) Presentable cells
(c) Recordable cells , (d) Readable cells
3) Ordinary occurring blocks of data are known as: 1 mark
a) Physical records
b) Field records
c) Logical records
d) Storage records
4) Operations that manipulate true/false values are known as: 1 mark
a) Manipulation operations
b) True value operations
c) False value operations
d) d) Boolean operations
5) One of the earliest computing devices was known as the: 1 mark
(a) Babbage's Difference Machine
(b) Mark I computer
(c) Colossus computer
(d) Abacus computer
6) A giant step toward popularizing computing resulted from the development of: 1 mark
(a) Desktop computers
(b) Mainframe computers
(c) Minicomputers
(d) None of the above
7) Which of these notations is extensively used for encoding numeric data for computer storage? 1 mark
a) Decimal notation
b) Binary notation
c) Hexadecimal notation
e) Encoded notation
8) Data is stored on a magnetic disk in: 1 mark
(a) The optical tracks
(b) The transistors
(c) Pits
(d) sectors
9) The idea of communicating an algorithm through holes in paper was developed by: 1 mark
(a) Charles Babbage
(b) Joseph Jacquard
(c) Herman Hollerith
(d) George Stibitz
www.schoolfaqs.net
Section B
1) Explain why programming in machine language is complicated and difficult to understand by people
and state the four problems that are associated with it. 4 marks
2) Convert each of the following base ten representations to its equivalent binary form. 2 marks (1,1)
(i)
96
(ii)
63/8
3) Draw a truth table for the XOR gate. 2 marks
4) What information must the CPU supply to the main memory circuitry in order to write a value into
a memory cell? 2 marks
5) Set a to the value b + c + d. Using the assembly language, write the program which will execute the
given expression. This should include the instructions, comments and the use of labels. 5 marks
6) Assume that you want to interchange the values stored in memory cells 15 and 35. What is wrong
with the following sequence of steps:
Step 1. Move the contents of cell number 15 to cell number 35 S
tep 2. Move the contents of cell number 35 to cell number 15.
Design a sequence of steps that correctly interchanges the contents of these cells, if required, you may
use additional cells. 5 marks
7) Write a C program that can be used to calculate the circumference of a circle deploying all the
concepts that you have learned. 6 marks
www.schoolfaqs.net