0% found this document useful (0 votes)
18 views6 pages

CSC1201_Exam_Type_A-1

Valuable lecture notes handout.

Uploaded by

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

CSC1201_Exam_Type_A-1

Valuable lecture notes handout.

Uploaded by

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

YUSUF MAITAMA SULE UNIVERSITY, KANO

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>

CSC1201 Exams, First Semester 2019/2020. Type A Question Paper Page 1 | 6


C. using namespace std;
The symbol below is used in flowcharting
D. Anywhere in the program
14. The use of C++ keywords such as int, float, and to denote ______ operation.
return as variable names is
A. Allowed unconditionally
B. Not allowed A. Decision
C. Allowed but not recommended B. Processing
D. Allowed but with conditions C. Start/Stop
15. A solution to a given problem that has been D. Input
transformed into a form that a computer can 24. Which program will run slower when executed on a
understand and execute is called ______ computer system?
A. Algorithm A. Program written in high-level programming
B. Transformed solution language
C. Program/Software B. Program written in assembly language
D. Computer understandable solution C. Program written in machine language
16. A compiler generates ______ at the end of a D. None of the above
successful compilation 25. The act of transforming a problem solution
A. Source code presented in an algorithm into a form
B. Executable code understandable to a computer system is called
C. Machine code ______
D. Object code A. Algorithm transformation
17. What type of software do we need to prepare B. Program development
lecture notes, question papers, calendars, wedding C. Programming
invitation cards, etc.? D. Coding
A. Application software 26. A person professionally trained to transform
B. System software algorithms into computer programs is called______
C. Solution software A. Developer
D. Typing software B. Programmer
18. Which program will run faster on a computer? C. Designer
A. Program written in Assembly language D. Coder
B. Program written in high level programming 27. The step during which program source code is
language transformed into object code is called ______
C. Program written in machine language A. Debugging step
D. Program written in pseudocode B. Testing step
19. The language translators for high level C. Execution step
programming languages are: D. Compilation step
A. Compiler, interpreter, and assembler 28. What type of error might have occurred if your
B. Interpreter and assembler program successfully compiled and executed but
C. Compiler and assembler produced unexpected result?
D. Compiler and interpreter A. Logical error
20. A diamond symbol is used in a flowchart to B. Runtime error
represent ______ C. Syntax error
A. Decision/selection D. Compile-time error
B. Sequence 29. True or False: a problem solution written in
C. Direction of flow pseudocode can be directly executed on a
D. Start/end of a flowchart computer system.
21. Which of the following is an invalid variable name in A. True
C++? B. False
A. char 30. True or False: C++ uses an interpreter as its
B. first_name language translator.
C. _gender A. True
D. value2 B. False
22. Variable declaration in C++ is ______ 31. What will be the output of the following program?
A. Optional #include <iostream>
B. Mandatory using namespace std;
C. Optional but recommended int main()
D. Not needed {
23. int x = 5;

CSC1201 Exams, First Semester 2019/2020. Type A Question Paper Page 2 | 6


int y = 7; C. first_grade
cout<<“x + y = “<< x + y; D. All of the above
cout<< “\n”; 41. All of the following options are among key concepts
return 0; of Von Neumann architecture except ________
} A. Data and instructions are stored in a single read–
A. “x + y” = x +y write memory
B. “x + y” = 5 + 7 B. The contents of this memory are addressable by
C. “x + y” = 12 location, without regard to the type of data
D. x + y = 12 contained there.
32. What is the full meaning of ROM? C. Execution occurs in a sequential fashion (unless
A. Read Only Memory explicitly modified) from one instruction to the
B. Reliable Operation Machine next
C. Random Operation Memory D. None of the above
D. Read Only Machine 42. At a top level, a computer consists of CPU, memory,
33. The unit within a processor that interprets and __________, with one or more modules of each
instructions and gives commands to other parts of a type, which are interconnected in some fashion to
computer is called ______ achieve the basic function of the computer.
A. CPU A. Register
B. Register B. Monitor
C. Control Unit C. I/O components
D. ALU D. Software
34. Processor has ______ within itself to keep small bit 43. Virtually all contemporary computer designs are
of information during processing. based on concepts developed by _________
A. Registers A. John Mauchly
B. Memory B. John Von Neumann
C. ALU C. Abu Ja’far Mohammed ibn Musa Alkhowarizmi
D. Control Unit D. Charles Babbage
35. What is the full meaning of BIOS? 44. In the process of connecting the various
A. Basic Information Organization System components in the desired configuration as a form
B. Basic Input Output Serialization of programming, the resulting “program” is in the
C. Basic Input Organization System form of hardware which is termed as _________
D. Basic Input Output System A. Hardwired Program
36. The type of software system put within electronic B. Hardwired Software
appliances is called ______ C. Hardware Program
A. Embedded system D. Hardware Software
B. Electronic software 45. Which of the following components is not among
C. Small scale software the Top-Level View of Computer Components:
D. Little software system A. CPU
37. True or False: every statement in C++ must B. Injector
terminate with a semicolon. C. Main Memory
A. True D. I/O Module
B. False 46. The acronym MAR stands for _______
38. The rate at which compute executes instructions A. Machine Arithmetic Register
per unit time is usually expressed as MIPS. What is B. Main Arithmetic Register
the full meaning of MIPS? C. Memory Address Register
A. Multiple Instructions Per Second D. Multipurpose Arithmetic Register
B. Maximum Instructions Per Second 47. What is purpose of Memory Buffer Register (MBR)?
C. Mega Instructions Per Second A. It contains the data to be written into memory or
D. Millions of Instructions Per Second receives the data read from memory
39. The address of the next instruction to be fetched B. It specifies the address in memory for the next
for execution by a processor is stored in ______ read or write
A. Program Counter (PC) C. It contains the address of the next instruction to
B. Memory Address Register (MAR) be executed
C. Memory Buffer Register D. None of the above
D. Instruction Register 48. __________ consists of a set of locations, defined
40. Which of the following is a valid variable name? by sequentially numbered addresses
A. _first_mark A. A CPU
B. number_12 B. A memory module

CSC1201 Exams, First Semester 2019/2020. Type A Question Paper Page 3 | 6


C. An I/O Mudule C. ENIAC
D. None of the above D. Valves
49. The basic function performed by a computer is 58. Which of the following is the correct syntax for
__________ variable declaration?
A. Sorting a program A. variableName datatype;
B. Mapping a program B. datatype variableName;
C. Deleting a program C. datatype value;
D. execution of a program D. value datatype;
50. The collection of paths connecting the various 59. Which best defines the software that translates
modules is called _________ and executes source code instruction by
A. interconnection structure instruction?
B. connecting structure A. Software
C. combining structure B. Assembler
D. none of the above C. Interpreter
51. ENIAC is an acronym that stands for: D. Compiler
A. Electrical Numerical Integration and Computation 60. Which of the following features characterises the
B. Electronically Networking Internet and earlier computers such as the ENIAC, EDSAC, EDVAC,
Computers etc.
C. Electronic Numerical Integrator and Computer A. Very expensive, perform few computations per
D. Electronic Numerical Integrator Automatic unit time, and occupy large space
Computer B. Use Vacuum tubes that could easily burn
52. Three American physicists developed transistor at C. All the above
Bell Telephone Laboratories in the year______ D. None of the above
A. 1948 61. The collection of 8 bits is called
B. 1928 A. Binary
C. 1918 B. Byte
D. 1938 C. Kilobytes
53. _________ is responsible for performing D. Megabytes
calculations such as addition, subtraction, 62. The type of memory on which we can store large
multiplication and division. amount of data is called
A. Control Unit A. Secondary storage
B. Random Access Memory (RAM) B. Primary storage
C. Arithmetic Logic Unit (ALU) C. Large capacity storage
D. Mathematical Operations Unit D. Large capacity memory
54. First Generation computers are characterized by 63. Who invented and built a device for performing
the following except: navigational calculations?
A. Huge A. William Gunter
B. Having instructions coded in assembly B. John Napier
language C. Edmund Gunter
C. Very slow D. Blaise Pascal
D. Unreliable 64. The first graphical user interface were design by?
55. ____________ is a Scottish Mathematician that A. Xerox cooperation
discovered logarithms in _________ B. IBM
A. John Naphier in 1614 C. Apple
B. Blaise Pascal in 1624 D. Da Vinci
C. Joseph-Marie Jacquard in 1724 65. Which of the following characteristics is not true
D. Mamman Shata in 1924 about second generation computers?
56. An IC fabrication technology that has over 100,000 A. Having instructions coded in Machine
transistors on a single silicon chip is called? Language
A. SSI B. Having the ability to perform more
B. MSI calculations
C. LSI C. Having more efficient storage
D. VLSI D. None of the above
66. The process of pinpointing and removing errors in a
57. ________ is a wooden rack holding two horizontal program is called ____________.
wires with beads strung to them. A. Error Destruction
A. Punched card B. Error Removal
B. Abacus C. Compilation

CSC1201 Exams, First Semester 2019/2020. Type A Question Paper Page 4 | 6


D. Debugging B. Output Unit
67. The following are some of the features of a well- C. Collection Unit
designed program except: D. Processing Unit
A. Easy to comprehend 76. The set of instructions that guides a computer on
B. Reliable how to process the input data in order to produce
C. Deployable the required result is called
D. Efficient A. Programming
68. Linking process involves: B. Program
A. Integrating local and remote programs so that C. Sequence of instructions
they can communicate D. Guiding instructions
B. Translating programs from high level 77. Other names for Random Access Memory (RAM) are
languages into machine codes A. Primary memory, main memory, working
C. Combining source codes with other codes to memory
produce an executable file B. Computer memory, working memory, digital
D. Combing object code with other code to memory
produce an executable program C. Flexible memory, primary memory
69. The initial problems that necessitated the D. Small capacity memory, working memory, main
development of electronic computer were memory
A. Commercial 78. The following are some of the programming
B. Educational process except:
C. Industrial A. Designing algorithm
D. Scientific B. Expressing algorithm in a programming
70. The scientist that proposed and helped in the language
development of ENIAC was C. Debugging and Testing
A. Blaise Pascal D. Reinventing the wheel
B. Gottfried Wilhelm Von Lobniz 79. One of the following is used to mark the end of an
C. John Mauchly instruction in a program
D. Charles Babbage A. Comma
71. Which of the following features characterises the B. Colon
earlier computers such as the ENIAC, EDSAC, EDVAC, C. Full stop
etc. D. Semicolon
A. Very expensive, perform few computations per 80. The Slide rule was built based on ______ ideas.
unit time, and occupy large space A. Aiken’s
B. Use Vacuum tubes that could easily burn B. Napier's
C. All the above C. Pascal’s
D. None of the above D. Gunter’s
72. The full meaning of UNIVAC is 81. Hollerith tabulator was used by US Government in
A. Universal Automatic Computer 1890 for………….
B. Universal Automatic Calculator A. Election
C. Universal Autonomous Computer B. Census
D. Universal Automatic Converter C. Adding Numbers
73. Transistor and Integrated Circuit (IC) technologies, D. Airstrike
which replaced the vacuum tubes in earlier 82. War always create opportunities, and World War II
computers, made it possible to have smaller, portal was no exception. There was a need for storing
computers. Where was transistor developed? information about new weapons and tests that were
A. IBM Laboratory performed with them. What was the name of
B. HP Research Laboratory computer that was built at the University of
C. Bell Telephone Laboratory Pennsylvania in 1945?
D. University of Pennsylvania A. MANIAC
74. The unit through which a user gives instructions and B. ENIAC
data for the computer to work on is called C. CANE
A. Data input unit D. EDVAC
B. Input Unit 83. A computer can be defined as an electronic device
C. Entry Unit that can (choose the most precise
D. Data Entry Unit Definition)
75. The unit through which a computer presents its A. Carry out arithmetical operations
result of processing/execution is called B. Carry out logical functions
A. Execution Unit

CSC1201 Exams, First Semester 2019/2020. Type A Question Paper Page 5 | 6


C. Present information to the operator on a visual B. Trying to open a file that does not exist
display unit C. Adding when you should be subtracting
D. Accept and process data by executing a finite D. Displaying the wrong message
set of stored instructions. 93. The Slide rule was built based on ______ ideas.
84. Manufacturers used ________ to build smaller and A. Aiken’s
cheaper computers. B. Napier's
A. I.C. Technology C. Pascal’s
B. Transistors D. Gunter’s
C. Vacuum Tubes 94. The first computer that was used for anything other
D. Valves Technology than military purpose was introduced in 1951. What
85. Which of the following belongs to the first was the name of the computer?
generation computers? A. Vacuum
A. Filament B. UNIVAC
B. Vacuum Tube C. Vicuna
C. Registers D. Da Vinci
D. Software 95. A computer can be defined as an electronic device
that can (choose the most precise
Definition)
A. Carry out arithmetical operations
86. What functionality does Gottfried Wilhelm von B. Carry out logical functions
Leibniz enabled on Pascal’s Machine? C. Present information to the operator on a visual
A. Addition display unit
B. Subtraction D. Accept and process data by executing a finite
C. Multiplication set of stored instructions.
D. Division 96. The first graphical user interface were design by?
87. Which among the following circuitry technology A. Xerox cooperation
B. IBM
does the third computer generation uses?
A. Transistor C. Apple
B. Resistor D. Da Vinci
C. Vacuum Tube 97. Which of the following is not a relational operator
D. Integrated Circuits A. <
B. AND
88. Which of the following is a correct variable
declaration in C++? C. ==
A. Char letter = ' '; D. >
B. string message = 'First test is on Monday' 98. Within an IF–THEN–ELSE statement may involve
C. int prime; further IF–THEN–ELSE statement, which is called
D. Double x,y,z; ________
89. In a computer keyboard the Alt, Ctrl, Shift, Del & A. Enclosed Ifs
Insert keys are known as B. Child Ifs
A. Standard keys C. Nested Ifs
B. Function keys D. None of the above
C. Navigation keys 99. In flowcharting, a diamond is used to represent
D. Special purpose keys __________
90. Operating System is an Example of: A. A beginning or end of a program
A. Utility Program B. An input operation
B. System Software C. A process to be carried out
C. Application Software D. A decision to be made
D. Malware 100. The Integrated Circuits (ICs) in the Third generation of
computers can be classified into ___________
91. In C++ program, executable instructions are also A. MML and SSL
called _______. B. MSL and MML
A. Identifiers C. SSI and MSI
B. Sentences D. LMSI and VSSI
C. Statements
D. Runtimes
92. Which of the following best describes a syntax
error?
A. Missing semicolon

CSC1201 Exams, First Semester 2019/2020. Type A Question Paper Page 6 | 6

You might also like