CSC1201_Exam_Type_A-1
CSC1201_Exam_Type_A-1
FACULTY OF SCIENCE
DEPARTMENT OF COMPUTER SCIENCE
2019/2020 FIRST SEMESTER EXAMINATIONS–MARCH 2021
CSC1201 – INTRO. TO COMPUTER SCIENCE
Type A Question Paper
Instruction: Answer all questions, all questions carry equal marks. Time Allowed: 2 hours
1. ______ and ______ are used to describe algorithms 8. Antivirus software is an example of ______
A. Pseudocode/flowchart A. Utility/System software
B. Flowchart/program B. Application software
C. Pseudocode/program C. Business software
D. Program/source code D. Gaming software
2. What type of programming error can go 9. A software that is designed and developed to solve
undetected by a compiler during compilation? a specific user’s problem is called ______
A. Program error A. System software
B. Syntax error B. Special software
C. Logical error C. Problem solving software
D. All of the above D. Application software
3. What type of error will happen if a program 10. The resources of a computer system are managed
attempts to divide a number by a zero? by what type of software?
A. Logical error A. Application software
B. Syntax error B. System software
C. Compilation error C. Resource management software
D. Runtime error D. All of the above
4. What type of error can make a program to crash?
A. Logical error StuSt Study the flowchart below and answer questions 11 and 12
B. Runtime error
C. Logical error start
D. Syntax error
5. Adding #include<iostream> at the beginning of a
C++ program that intends to read data from a x = 10
keyboard or display information to the screen of a y=0
computer is
A. Optional
B. Compulsory x > 0 No
C. Recommended ?
D. Not required Yes
6. Every C++ program must contain exactly one main x=x-1
Print x, y
function y=y+1
A. True
B. False
7. What type of error is present in the following C++ stop
program?
#include <iostream> 11. What type of structure is used in the flowchart?
using namespace std; A. Decision and selection
int main() B. Decision only
{ int x, y, x; C. Selection only
x = 3; D. None of the above
y = 1; 12. What values will be printed for x and y at the end of
z=x+y the flowchart?
cout<<z; A. 10 and 0 respectively
return 0; B. 10 and 10 respectively
} C. 1 and 10 respectively
A. Logical error D. 0 and 10 respectively
B. Syntax and logical error 13. A C++ program starts execution from
C. Syntax error A. int main()
D. Programming error B. #include <iostream>