PREMIER
CSC 112 STUDY QUESTIONS BY TAIWO OLALERE
(PREMIER)
1. The program written basically for scientific computation is ……?
(A) FORTRAN (B) COBOL (C) C++ (D) BASIC
2. Basic programming language was invented by ……?
(A) keneny and kutz (B) John Kenemy and Thomas Kurts (C) John Kemeny and
Thomas Kurtz (D) none of the above
3. …… can be defined as a set of computer programs that manage the hardware and
software resources of a computer?
(A) Application system (B) system software (C) Operating system (D) Software
4. The acronym POST stands for ……?
(A) Power-of self test (B) power-on self test (C) power-online self test (D) power-off
self test
5. …… allows many different users to take advantage of the computer's resources
simultaneously?
(A) Real-time operating system (B) multi-programming OS (C) Batch system (D)
Multi-user Operating system
6. In …… users submit jobs to a central place where these jobs are collected into a
batch, and subsequently placed on an input queue at the computer where they will be
run?
(A) Time sharing OS
(B) Batch processing OS
(C) Real time OS
(D) All the above
7. …… is a set of instructions that tells the computer what to do?
(A) A program (B) hardware (C) software (D) none of the above
8. Assembly language might be used instead of a high-level language for any of three
major reasons, which are:
(A) Speed, Control, and Efficiency (B) Speed, Control, and Preference (C) Speed,
portable and efficient (D) Speed, Control, and scalability
9. Assembly language uses easy-to-remember commands that are called ……?
(A) Pneumonic (B) mnemonics (C) software (D) none of the above
10. One of the disadvantages of Assembly language is that ……?
(A) Program translation is easier than high level language
(B) It affords the programmer the opportunity to understand the internal structure of
the hardware and its registers
(C) Disadvantages of Low Level Language
(D) It is machine dependent
11. The acronym BASIC means ……?
(A) Beginner’s All-purpose Symbolic Instructional Code
(B) Beginner’s All-purpose Symbolic Instruction Coded
(C) Beginner’s All-purpose Symbolic Instruction Code
(D) Beginner’s All-purpose Symbol Instructional Code
12. The acronym FORTRAN means ……?
PREMIER (08138361397)
(A) FORMED TRANLATOR (B) FORMULA TRANSLATOR (C) A&B (D)
FORMULAR TRANSLATE
13. …… is a program which converts statements (program or instructions) written in one
language to statements in another language especially to machine language?
(A) Assembler (B) Compiler (C) Translator (D) interpreter
14. …… translates a high level language into machine language once at a time? (A)
Compiler (B)assembler (C) translator (D) interpreter
15. …… completely translate and execute each instruction one after the other before it
goes onto the next?
(A) Compiler (B)assembler (C) translator (D) interpreter
16. The difference between the compiler and the interpreter is in their ……?
(A) translation process (B) transmission process (C) interpretation process (D) all of
the above
17. …… can be defined as the finite set of sequential steps (instructions) involved in
solving a particular problem?
(A) Pseudo code (B) arithmetic (C) Flowchart (D) Algorithm
18. …… is a graphical or diagrammatic representation of step by step process of solving
a programming problem?
(A) Pseudo code (B) arithmetic (C) Flowchart (D) Algorithm
19. The symbol below is called ……?
(A) Process symbol (B) flowchart (C) start/stop (D) terminal symbol
20. …… is an informal high-level description of the operating principle of a computer
program or other algorithm?
(A) Pseudo code (B) arithmetic (C) Flowchart (D) Algorithm
21. Given the code below, the step 1 means …… in flowchart?
Step 1: Begin
Step 2: READ A, B
Step 3: C = A + B
Step 4: PRINT C
Step 5: stop
(A) Processing (B) decision (C) start (D) stop
22. …… is a set of instructions written to a computer to perform specific tasks?
(A) Operating system (B) Computer program (C) Programming language (D)
Software
23. The acronym CPU stands for ……?
(A) Central processor unit (B) Centre Processing Unit (C) Central Processing union
(D) Central processing unit
24. …… is a type of computer programming language that specifies a series of well-
structured steps and procedures within its programming context to compose a
program?
(A) Programming language (B) operating system (C) procedural programming (D)
computer program
PREMIER (08138361397)
25. Data in an object are known as ……?
(A) Attributes (B) methods (C) procedures (D) functions
26. Functions in an object are known as ……?
(A) Attributes (B) methods (C) procedures (D) functions
27. …… are elements in memory which have a value?
(A) Programming (B) functions (C) variable (D) array
28. In BASIC programming, the acronym REM stands for ……?
(A) Remedial (B) relay (C) Remark (D) none of the above
29. Which of these does not execute with the program ……?
(A) REM (B) SQR (C) array (D) END
30. In BASIC programming, the acronym CLS stands for ……?
(A) Clear Screen (B) Clean Screen (C) Clearer Screen (D) none of the above
31. In BASIC programming, the word PRINT is used to ……?
(A) Print out the code (B) input in-built function (C) to write on screen (D) all of the
above
32. Statements that are used to implicitly or explicitly control the sequence which
program statements are to be executed are referred to as ……?
(A) Control structures (B) central structures (C) sequence structures (D) A&B
33. The type of control structures in which the program is executed one after the other is
called ……?
(A) Iteration (B) selection (C) loop (D) sequence
34. One basic property of a control structure is that ……?
(A) It has only one point of entry and more point of exit
(B) it has only one point of entry and one point of exit
(C) it has two point of entry and one point of exit
(D) it has only one point of entry and multiple point of exit
35. The type of control structure that involves decision making in which one of two or
more sets of activities would have to be carried out depending on the truth or falsity
of a specified condition before executing the program is ……?
(A) Iteration (B) selection (C) loop (D) sequence
36. Which of these is not a relational operator?
(A) < > (B) >= (C) <= (D) #
37. …… is a type of selection in which a choice is to be made between 2 alternative sets
of actions based on the truth or falsity of a specified condition.
(A) Normal selection (B) binary selection (C) single selection (D) all of the above
38. …… is a type of control structure in which an action is repeatedly carried out until a
given condition is satisfied?
(A) Iteration (B) selection (B) loop (D) sequence
39. Which of these is used to implement a post-test iteration?
(A) Repeat-until (B) While-wend (C) both (D) none of the above
40. Given the code below, what will be the output of the program?
10 LET R = SQR (49)
20 PRINT R
30 END
(A) 7 (B) Square (C) 49 (D) R
PREMIER (08138361397)
41. Consider the code in Question 40 above, the SQR means ……?
(A) Argument (B) function name (C) variable (D) none of the above
42. Consider the code in Question 40 above, the (49) means ……?
(A) Function name (B) Argument (C) variable (D) none of the above
43. Consider the code below, what will be the output?
10 LET A$ = “HELLO WORLD”
20 PRINT A$
30 END
(A) A$
(B) “HELLO WORLD”
(C) Hello world
(D) HELLO WORLD
44. …… is used to get the length of the number of characters in a string?
(A) SQR (B) Array (C) STRING (D) LEN
45. Consider the code below, what will be the output?
10 A$ = “BETTER BY FAR”
20 PRINT LEFT$ (A$, 6)
(A) “BETTER BY FAR (B) BETTER (C) BET (D) FAR
46. What will be the output of the code below?
10 A$ = “BETTER BY FAR”
20 PRINT RIGHT$(A$, 3)
(A) “BETTER BY FAR (B) BETTER (C) BET (D) FAR
47. Which of these indicate the end of a function?
(A) FWEND (B) FNEND (C) DEF (D) FDEF
48. Which of these indicates the beginning of a function?
(A) FWEND (B) FNEND (C) DEF (D) FDEF
49. In a Subroutine subprogram, it has a format known as nn GOSUB mm, where the mm
stands for ……?
(A) RETURN (B) END (C) BEGINS (D) Line numbers
50. The only language that computer understands is ……?
(A) Assembly language
(B) High level language
(C) Low level language
(D) Machine language
51. The BIT sequence 10001 is a format for which of the computer language
(A) Assembly language (B) Machine language (C) High level (D) Low level language
52. Which of the computer language is very readable?
(A) Assembly language (B) Machine language (B) High level (D)Low level language
53. “For”, “while” and “do” are words for the indications of which programming
statement
(A) Iterative (B) selection (C) Loop (D) sequence
54. Which keyword is used to accept data to be stored in the variable?
PREMIER (08138361397)
(A) INPUT (B) LET (C) READ (D) WRITE
55. ……. is a sequence of characters?
(A) strings (B) real (C) numbers (D) variables
56. Arguments in programming language is separated by ……?
(A) addition sign (B) Division sign (C) Comma (D) Full stop
57. Which keyword is used to terminate a program?
(A) STOP (B) LET (C) END (D) PRINT
58. A statement used to transfer a control of statements from one point to another is
(A) RETURN (B) SKIP (C) GO TO (D) CONTINUE
59. The process of identifying errors in a computer program and correcting such is called
(A) Correction (B) Bugging (C) Error Detection (D) Debugging
60. The following are the three basic logic gates except
(A) AND (B) OR (C) NOR (D) NOT
61. …… a simple sorting algorithm that continuously iterates through a list, swapping
items until they appear in the correct order?
(A) Bubble sort (B) Selection sort (C) Insertion sort (D) Merge sort
62. What will be the output of the code below?
10 A$ = “UNIVERSITY OF ILORIN, ILORIN,”
21 PRINT RIGHT$(A$, 7)
(A) ILORIN
(B) UNIVERSITY
(C) RIGHT$(A$, 7)
(D) ILORIN,
63. We have …… types of translators?
(A) 2 (B) 3(C) 5 (D) 7
64. …… translates assembly language into machine code?
(A) Assembler (B) translator (C) interpreter (D) compiler
65. …… makes the program structure easier to manage?
(A) Decapsulation (B) encryption (C) encapsulation (D) compiler
66. …… refers to the hierarchical arrangement of implementation fragments?
(A) Hierarchy (B) encapsulation (C) Decapsulation (D) inheritance
67. …… means abstract entities are implemented in many ways?
(A) Polymorphism (B) encapsulation (C) A&B (D) all of the above
68. Basic was originally designed in what year?
(A) 1966 (B) 1954 (C) 1974 (D) 1964
69. …… stores text values without decimal?
(A) Float (B) decimal (C) integer (D) bool
70. …… stores text values?
(A) String (B) float (C) integer (D) bool
71. …… stores values with decimal?
(A) Floating (B) point (C) integer (D) string
72. In a condition A<B, the less than is called ……?
(A) Opera (B) operands (C) relational operator (D) assignment operator
73. Using the information provided in question 12, A and B are called …..?
(A) Operands (B) opera (C) operators (D) computer
PREMIER (08138361397)
74. When an action is repeatedly carried out until a given condition is satisfied, it
is called?
(A) Iteration (B) operands (C) titeration (D) none of the above
75. ASCII means?
(A) America Standard Code for Informations Interchange
(B) American Standard Code for Information Interchange
(C) Option A and B
(D) None of the above
76. ASCII code for A is ……?
(A) 90
(B) 96
(C) 97
(D) 95
77. ASCII code for ‘a’ is ……?
(A) 90 (B) 96 (C) 97 (D) 95
78. ASCII code for ‘B’ is ……?
(A) 96 (B) 95 (C) 66 (D) 67
79. ASCII code for ‘b’ is ……?
(A) 98 (B) 95 (C) 66 (D) 67
80. ASCII code for C is …… ?
(A) 96 (B) 95 (C) 66 (D) 67
81. In a situation whereby the intended function is too complex to appear as a
single and simple expression, the …… method is used?
(A) Multiple Line Function (B) single Line Function (C) A&B (D) none of the
above
82. We have …… types of subprograms?
(A) 2 (B) 3 (C) 7 (D) 8
83. Functions and subroutines are the types of ……?
(A) Programs(B) subprograms(C) subroutine (D) none of the above
84. Machine and assembly are referred to as ……?
(A) High level language (B) assembly language (C) low level language (D) all of
the above
85. …… changes a numeric data to a strong data?
(A) STR$ (B) STR& (C) A&B (D) none of the above
86. ___ can be defined as the finite set of sequential steps involved in solving a
particular problem.
(a)Algorithm (b) Program (c) instructions (d) Pseudo-code
87. All of the following are features of algorithm EXCEPT
(a) It should head to unique solution of the problem.
(b) It should be simple and precise.
(c) It should involve an infinite number of steps to arrive at a solution
(d) It should be clear with no ambiguity.
88. ____ is a graphical or diagrammatic representation of an algorithm
(a) Path chart (b)float chart (c) control chart (d) Flow chart
89. _________ and __________ are methods of representing algorithm
(a) Path chart and program
PREMIER (08138361397)
(b) Float diagram and code
(c) Flow chart and pseudo-code
(d) Flow chart and pseudo-program
90. An algorithm representation that uses the structural conventions of a
programming language, but is intended for human reading rather than machine
reading is ______
(a) Algorithm (b)Program (c) instructions (d) Pseudo-code
91. All the following are advantages of flow chart EXCEPT
(a) Easy modification (b) Better communication (c) Proper Documentation
(d)Effective analysis
92. In flow chart the parallelogram represents
(a) Processing (b) Decision (c) Input/Output (d) Connection
93. Arithmetic operations can be represented in a flow chart by a/an__________
(a) Circle (b) rectangle (c) oval (d) parallelogram
94. The following are disadvantages of flow chart except
(a) Time Consumption (b) Alteration (c) Reproduction (d) No Standardized style
95. In pseudo-code while-do statement Or repeat until can be used to carry out
which of the following actions
(a) Decision (b) Print (c) Repetition (d)Input
96. In pseudo-code the statement READ A, B represents
(a) A print action (b) Repetition action (c) Input action (d) Stop Action
97. An oval shape is used in a flow chart to indicate ________
(a) Input Operation (b) start or end of flow chart (c) assignment operation (d)
Decision
98. Step 1: Begin
Step 2: READ A, B
Step 3: product = A * B
Step 4: if product is > 40 THEN Step 5 ELSE Step 6
Step 5: PRINT product
Step 6: stop
Given the pseudo-code above, if the value of product is 60 which of the following
statements is executed
(a) product = A * B (b) stop (c) PRINT product (d) ELSE Step 6
99. If (Condition) Then
Action
Else
Alternate action
End if
The statements above represent which of the following actions in pseudocode
(a) Input (b) Iteration (c) Decision (d) Condition
100. The following are advantages of pseudocode except
PREMIER (08138361397)
(a) It can be easily modified (b) Ease of conversion to a real programming language
(b) It can be easily written and read (d) It is visual
101. One of the following is a disadvantage of pseudocode
(a) There is no standardized style or format for pseudocode writing (b) reproduction
of pseudocode is often a problem (c) pseudocode consumes time and it is
laborious to implement (d) pseudo-code cannot be executed on computers
102. In a flow chart the symbol used to indicate the flow of direction of flowchart
and link symbols is _________
(a) Circle (b) Arrow lines (c) Rectangle (d)Oval
103. Flow chart is usually terminated with which of the following symbol
(a) Oval (b) parallelogram (c) rectangle (d) circle
104. ________ specifies the actions to be executed and the order of execution in
solving a particular problem
(a) Control structure (b) Algorithm (c) flow chart (d) Instruction Flow
105. An algorithm representation that uses special geometrical symbols to
represent activities is ________
(a)Algorithm (b)Program (c) Flow chart (d) Pseudo-code
106.
In a Flow chart the symbol above represents
(a) Decision (b) Process (c) Output (d) Input
107. The shape below is called ___?
(A) Oval Symbol (B) Connector (C) Decision symbol (D) rectangle
108. The Oval shape symbol represents ____?
(A) Decision (B) Connector (C) Start/Stop (D) Processing
109. An RTOS typically has very little _________ capability, and no end user
utilities, since the system will be a sealed box when delivered for use.
(A) User Interface (B) Operating System (C) User Design (D) User experience
ANSWERS TO ALL QUESTIONS BY (PREMIER)
(08138361397)
1. A 21. C 41. B 61. A 82. A 101. A
2. C 22. C 42. B 62. D 83. B 102. B
3. C 23. D 43. D 63. B 84. C 103. D
4. B 24. C 44. D 64. A 85. A 104. B
5. D 25. A 45. B 65. C 86. A 105. C
6. B 26. B 46. D 66. D 87. C 106. A
7. A 27. C 47. B 67. A 88. D 107. A
8. B 28. C 48. C 68. D 89. C 108. C
PREMIER (08138361397)
9. B 29. A 49. D 69. C 90. D 109. A
10. D 30. A 50. D 70. A 91. A
11. C 31. C 51. B 71. A 92. C
12. B 32. A 52. B 72. C 93. B
13. C 33. D 53. C 73. A 94. D
14. A 34. B 54. A 74. A 95. C
15. D 35. B 55. A 75. B 96. C
16. A 36. D 56. C 76. D 97. B
17. D 37. B 57. C 77. B 98. B
18. C 38. A 58. C 78. C 99. C
19. D 39. A 59. D 79. A 100. D
20. A 40. A 60. C 80. D
81. A
SECTION B – BY PREMIER
1. Begin
READ A, B
sum = A + B
if sum is > 40 THEN
PRINT product
ELSE Stop
The pseudocode above represent a program that performs which of the following:
(a) add two numbers
(b) add two numbers and output the result
(c) add two numbers output the result if one of the numbers is greater than 40
(d) add two numbers and output the result if it is greater than 40
2. Begin
Read f
C = (f-32) * 5/9
PRINT”the temperature in Fahrenheit is”, f
PRINT “the temperature in centigrade is”, c
Stop
Which of the following actions can not be found in the pseudocode above?
(a) Input action (b) decision action (c) print action (d) stop action
3. WHILE – DO statement is used in pseudocode to carry out which of the following
actions
(a) Repetition action (b) Decision action (c) Stop action (d) Input action
4. Begin
Read f
C = (f-32) * 5/9
PRINT ”the temperature in Fahrenheit is”, f
PREMIER (08138361397)
PRINT “the temperature in centigrade is”, c
Stop
If the value of f in the pseudocode above is 47, the last PRINT statement will output
(c) the temperature in centigrade is, c
(d) the temperature in centigrade is , 5
(c) the temperature in centigrade is 5
(d) the temperature in centigrade is c
5. An informal high-level description of the operating principle of a program or an
algorithm is ______
(a) Algorithm (b) Program (c) instructions (d) Pseudo-code
6. In flow chart the Circle shape represents
(b) Processing (b) Decision (c) Input/Output (d) Connection
7. Assignment operation can be represented in a flow chart by a/an__________
(b) Circle (b) rectangle (c) oval (d) parallelogram
8. Which of the following make pseudocode more suitable to programmers in
developing algorithm
(a) Easy modification (b) better insight and clarity (c)easy conversion to a
programming language (d) No Standardized style
9. In pseudo-code IF - ELSE can be used to carry out which of the following actions
(a) Decision (b) Print (c) Repetition (d)Input
10. In pseudo-code Input action could be represented with which of the following
A) LOAD A (b) WRITE A (c) READ A (d) PUSH A
11. In pseudocode the symbol used to represent start/end of a program is ________
(b) triangle (b) oval (c) circle (d) parallelogram
12. Step 1: Begin
Step 2: READ A, B
Step 3: product = A * B
Step 4: if product is > 40 THEN Step 5 ELSE Step 6
Step 5: PRINT product
Step 6: stop
Given the pseudo-code above, which of the following values of product will cause the
statement “PRINT product “to be executed
(b) 40 (b) 60 (c) 1 (d) 5
13. Begin
If student’s grade >= 60 then
Print “passed”
Else
Print “face tanke”
End if
Stop
The pseudocode above illustrate which of the following actions
PREMIER (08138361397)
(b) Input (b) Iteration (c) Decision (d) Condition
14. The process of detection and removal of errors in the logic of a program is called
(c) Error detection (b) debugging (b) Interpretation (d) compilation
15. One of the following is a disadvantage of pseudocode
(b) There is no standardized style or format for pseudocode writing (b) reproduction
of pseudocode is often a problem (c) pseudocode consumes time and it is laborious to
implement (d) pseudo-code can not be executed on computers
16. In a flow chart the symbol used to represent a print operation is _________
(b) Circle (b) parallelogram (c) Rectangle (d) Oval
17. Geometric symbols in Flow chart are usually connected with which of the following
(b) Oval (b) circle (c)arc (d) arrow line
18. ________ defines the step by step order of writing a program to solve of a problem
(b) Control structure (b) Algorithm (c) flow chart (d) Instruction Flow
19. A pictorial representation of an algorithm is ________
(a)Structure (b) Program (c) Flow chart (d) Pseudo-code
20. All the following made flow chart a convenient way of documenting a program
EXCEPT _____?
(A) Easy Modification (B) Better Communication (C) Easy Debugging (D) Effective
Analysis
21. Which of the languages makes the writing of codes easier by replacing 1 and 0s with
readable terms?
(A) PHP (B) C++ (C) Assembly Language (D) High level language
22. Detecting of error, representation of error in a tabular form before the program is being
compiled is ______?
(A) Advantage of compiler
(B) Advantage of Assembler
(C) Functions of Compiler
(D) Functions of Assembler
PREMIER (08138361397)
ANSWERS FOR SECTION B – BY PREMIER
(08138361397)
1. D 19. C
2. B 20. B
3. A 21. C
4. C 22. C
5. D
6. D
7. B
8. C
9. A
10. C
11. B
12. B
13. C
14. B
15. B
16. B
17. D
18. B
PREMIER (08138361397)