0% found this document useful (0 votes)
133 views4 pages

Computer Science Past Question 2

The document is a collection of past questions for a Computer Science HND CBT exam at The Polytechnic, Ibadan. It covers various fundamental concepts in computer programming, algorithms, software categories, and programming statements. Each question provides multiple-choice options related to key topics in computer science.
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)
133 views4 pages

Computer Science Past Question 2

The document is a collection of past questions for a Computer Science HND CBT exam at The Polytechnic, Ibadan. It covers various fundamental concepts in computer programming, algorithms, software categories, and programming statements. Each question provides multiple-choice options related to key topics in computer science.
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/ 4

Edited By Harladex - 09031971146 - Do Not Sell

THE POLYTECHNIC, IBADAN


COMPUTER SCIENCE
HND CBT PAST QUESTION
1. What is a computer programs?
a) A set of instructions that a computer follows to perform a task
b) A set of tasks that a computer can perform
c) A sequence of task that the hardware performs
d) Is a set of instructions to shut down a computer

2. An Algorithm can be define as


a) Is the program that runs a computer
b) Is the hardware device that perform special functions on the computer
c) Is a clear and unambiguous specification of the steps needed to solve a problem
d) It is simply a tool to diagnose a computer fault

3. Diagrammatical representation of an algorithm is refer to as


a) Corel Draw
b) Flowchart
c) Programming
d) Software

4. What is a Variable?
a) Is the name given to a computer program
b) Is an object that cause the program to run
c) Is a symbolic reference to a memory location
d) Is a program that is used to interpret a computer code

5. IF-Statement is an example of
a) Selection Control Statement
b) Sequential Control Statement
c) Loop Control Statement
d) Iterative Control Statement
Edited By Harladex - 09031971146 - Do Not Sell

6) Word processing programs, spread-sheet programs, email programs, web browsers, and
game programs belong to what category of software?
a) System Programs
b) Application Programs
c) Compiler
d) Operating System

7) Compile-Time error occurs when


a) There is syntax error in the code
b) The code is being executed
c) The code is not properly saved
d) There is error during program execution

8) The statement used to describe alternative sentences that are to be carried out based on the
result of a binary decision is referred to as
a) If-Else Statement
b) If Statement
c) While Statement
d) For Statement

9) A special kind of method that is used to initialize newly created objects is called
a) Constructor
b) Public
c) Static
d) Class

10. There are two types of translators, namely


a) Compiler and Software Instruction
b) Interpreter and Compiler
c) Compile-Time and Run-Time
d) Application translator and System Translator
Edited By Harladex - 09031971146 - Do Not Sell

11. If A = 5/2 and B = 5%2, what will be the value of A and B?


a) A = 1.5 and B = 1
b) A = 1 and B = 1
c) A = 1.5 and B = 1.5
d) A = 1 and B = 1.5

12. The equation D = b2 - 4ac can be written as


a) D = b*b – 4*a*c
b) D = (b*b) – (4*a*c)
c) D = b*(b-4*a*c)
d) D = b*b – (4*a*c)

13. Given A = 5, what will be the value of B if B = (A>=10)? 20: 30


a) 20
b) 30
c) 50
d) 10

14. The notation for a newline character in Java is


a) \t
b) \newline
c) \n
d) n\newline

15. A __________ can be defined as a template or blueprint that describes the


behaviours/states that object of its type support.
a) Class
b) Method
c) Inheritance
d) Instant Variable
Edited By Harladex - 09031971146 - Do Not Sell

16. A contiguous memory location is referred as


a) A variable
b) An object
c) An Array
d) A class

17. The word HTML stands for


a) Hypertext Manipulation Language
b) Hyper Transmission Marking Language
c) Hypertext Markup Language
d) Hypertext Makeup Language

18) Each website has a unique address commonly referred to as a


a) Domain
b) World Wide Web
c) Uniform Resource Locator
d) Hypertext Transfer Protocol

19. Which of the following is not an example of a loop statement?


a) While Statement
b) Do...While Statement
c) For Statement
d) That Statement

20. A software program that is necessary in order to view a web page on the web is referred
to as
a) Web Browser
b) Internet Protocol
c) Web Protocol
d) Internet

You might also like