wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QUIZ1

Total questions: 86

Worksheet time: 39mins

Name
Class
Date
1.
... is a set of ordered steps for solving a particular  problem. 
a)
An algorithm
b)
Program language
c)
Operator
d)
Variable
2.

Which of the following is a correct block comment?

a)

*/ Comments */

b)

// Comment

c)

/* Comment */

d)

{ Comment }

3.
A list of instructions that enable a computer to perform a specific task is a...
a)
Computer Program
b)
Algorithm
c)
Machine Code
d)
Binary Code
4.
A programmer is:
a)
person who writes code and communicates instructions to a computer
b)
person who types
c)
person who studies computers
d)
error or mistake in your code
5.
What is the output of this program?
Program
int main()
{
cout<<"Hi everybody";
return 0;
}
a)
"Hi everybody"
b)
Hi everybody"
c)
Hi everybody
d)
"Hi everybody
6.

A program written in a high language is called a ____________

a)

object

b)

source code

c)

variable

d)

constant

7.

______ is used to input value from the user.

a)

cin>>

b)

cin<<

c)

<cin>

8.

Which of these is used to output text in C++?

a)

cprint

b)

cdisplay

c)

cout

d)

clout

9.

Which of these is the symbol used with the output statement to begin the output stream?

a)

<<

b)

>>

c)

((

d)

[[

10.

Where do we write the codes?

a)

1

b)

2

c)

3

d)

4

11.

What is the output of this program?

int main()

{

cout<<"Hi everybody";

return 0;

}

a)

"Hi everybody"

b)

Hi everybody"

c)

Hi everybody

d)

"Hi everybody

12.
What sign is used to end the code sentence ?
a)
,
b)
.
c)
:
d)
;
13.
Machine Code uses mnemonics to represent instructions
a)
True
b)
False
14.
Which generation of a programming language is Assembly Code?
a)
1st Generation (Low)
b)
2nd Generation (Low)
c)
3rd Generation (High)
15.
What does IDE stand for?
a)
Integrated Debugging Equipment
b)
Integrated Debugging Environment
c)
Integrated Development Equipment
d)
Integrated Development Environment
16.

A logic error

a)

is when the program is coded correctly, but an error occurs because of a problem while the program is being executed (not because of a mistake in the code)

b)

is when incorrect words or punctuation is used, or when correct words and punctuation are used in the wrong order

c)

is when the stars don't line up properly and a cosmic ray changes a true value to a false value

d)

is when the program is coded incorrectly to produce an incorrect result, but with correct statements. The only way to know there was an error is to notice that the result is wrong

17.
Example of First Generation Programming Language
a)
COBOL
b)
Machine Language
c)
C++
18.
Third Generation Programming Language also known as 
a)
Natural Language
b)
High Level Programming Language
c)
Very High Level Programming Language
19.
SQL , NOMAD and FOCUS are examples of .............. Generation Programming Language
a)
Third
b)
Fourth
c)
Fifth
20.

What is X?

a)

Implementation Phase

b)

Coding Phase

c)

Writing Phase

d)

Development Phase

21.
"A set of specific procedures, which consists of, step by step instructions to solve the problem must be develop using pseudo code or flow chart"
The statement above refer to ........................ phase
a)
Problem Analysis
b)
Program Design
c)
Documentation
22.
A series of step by step instructions telling the computer what to do is called ............
a)
Programming
b)
Program
c)
Programming Language
23.
A person who writes code and communicates instructions to a computer.
a)
Code
b)
Programmer
c)
Command
d)
Program
24.
Process of finding and fixing errors in the syntax so the computer program will run properly
a)
Bugs
b)
Sequence
c)
Debugging
d)
Command
25.

The following figure is an example of simple flow chart.

Flow chart is used in _____________ phase.

a)

analysis

b)

design

c)

coding

d)

testing

26.

The spelling and grammar of a programming language

a)

diction

b)

syntax

c)

vocabulary

d)

word wall

27.

Which level of a programming language is Machine Code?

a)

Low

b)

High

28.

Which level of a programming language is Assembly Code?

a)

Low

b)

High

29.

Which level would create the easiest code for humans to understand?

a)

Low

b)

Assembly

c)

High

30.

Python is an example of a High Level programming language

a)

True

b)

False

31.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

32.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

33.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

34.
Syntax errors
a)
read the program and begin execution.
b)
function imperfectly to express computations.
c)
occur when the programmer does not follow the rules of the language
35.
An interpreter
a)
is a high level language that can run on different kinds of computers.
b)
translates the program.
c)
converts a program written in a higher level language line by line into a lower level language and executes it.
36.
What is the only thing that computers understand?
a)
Machine Code
b)
Low Level Languages
c)
High Level Languages
d)
Algorithms
37.
Before a computer can understand a program it must be...
a)
Translated into its machine code.
b)
Translated into a high level language.
c)
Translated into a low level language.
d)
Converted into binary.
38.
When writing a computer program most program use...
a)
A High Level Language
b)
A Low Level Language
c)
A Machine Code
d)
An Algorithm 
39.
A language that requires no knowledge of the hardware or the instruction set of the computer is called...
a)
A High Level Language
b)
A Low Level Language
c)
Machine Code
d)
An Algorithm
40.
A language that is close to human language and which is easy to write, debug and maintain is known as...
a)
A High Level Language
b)
A Low Level Language
c)
An Algorithm
d)
Machine Code
41.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
42.
Which of the following is not a high level programming language?
a)
Assembly
b)
C++
c)
Java
d)
Python
43.
Languages that relate to the architecture and hardware of a specific computer are known as...
a)
High Level Languages
b)
Low Level Languages
c)
Simplex Languages
d)
Complex Languages
44.
The two categories of low level language are...
a)
Machine Code & Assembly
b)
Machine Code & Algorithms 
c)
Assembly & Algorithms
d)
Algorithms & Binary
45.
What is the name for the software used to convert an assembly language program into machine code?
a)
Assembler
b)
Interpreter
c)
Compiler
d)
Translator
46.
The 3 main types of translators are...
a)
Assemblers, Compilers & Interpreters 
b)
Assemblers, Compilers & Converters 
c)
Assemblers, Scripters  & Interpreters 
d)
Converters, Scripters & Interpreters 
47.
Software that translates and executes a high level language program one line at a time is known as a?
a)
Compiler
b)
Interpreter
c)
Assembler
d)
Executor
48.

What is an Algorithm?

a)

A picture that you use to make a program

b)

A precise set of instructions

c)

Shapes and symbols connected together

d)

Breaking a problem down into smaller tasks

49.

This is a graphical representation of an algorithm

a)

Computer Program

b)

Binary Diagram

c)

Decomposition

d)

Flowchart

50.
What is machine code?
a)
Instructions converted by a translator
b)
Instructions in an HLL used by the CPU
c)
Instructions in binary used by the CPU
d)
Instructions in assembly used by the CPU
51.
What is a translator?
a)
A program that converts commands into machine code
b)
A program that converts HLL to assembly code
c)
A program that converts the inputs from a keyboard
d)
A program for writing code
52.
What is Assembly code?
a)
Another name for Pseudocode
b)
A programming language that uses mnemonic codes
c)
A program that joins pieces of code together
d)
Another name for machine code
53.
What does IDE stand for?
a)
Integrated Debugging Equipment
b)
Integrated Debugging Environment
c)
Integrated Development Equipment
d)
Integrated Development Environment
54.
What is an interpreter?
a)
Converts source code one instruction at a time
b)
Converts source code between 2 HLLs
c)
Converts source code between HLL and Assembly
d)
Converts keyboard presses to an ASCII code
55.
What would you use to convert high-level source code to machine code?
a)
Linker
b)
Assembler
c)
Compiler
d)
IDE
56.

Haruto is a high school student who has never taken a programming course.


He wants a programming language that is easy to learn, that contains English words and phrases, as well as easily recognized symbols.


The counselor recommends a Javascript course.


What type of programming language is this?

a)

Machine language

b)

Assembly language

c)

Application language

d)

High-level language

57.

What is the only language that a computer can understand?

a)

Application

b)

Machine

c)

Assembly

d)

High-level

58.

The set of rules that must be followed when writing program instructions for a specific programming language is called:

a)

executing

b)

machine language.

c)

binary.

d)

syntax

59.

Assembly is a...

a)

high level programming language

b)

low level programming language

60.

Machine code is a...

a)

high level programming language

b)

low level programming language

61.

What is the only thing that computers understand?

a)

Machine Code

b)

Low Level Language

c)

High Level Language

d)

Algorithm

62.

Before a computer can understand a program it must be...

a)

Translated into its machine code.

b)

Translated into a high level language.

c)

Translated into a low level language.

63.

Java, Python, PHP, and C++ are examples of

a)

low level languages

b)

Graphic arts languages

c)

medium level languages

d)

high level languages

64.

What is machine code?

a)

A programming language that a computer understands

b)

The make and model of a computer

c)

The serial number of a computer

65.
What is the correct definition of an algorithm?
a)
An algorithm is a step by step instructions to solve a problem.
b)
An algorithm is a process of baking bread.
c)
An algorithm is a software used to compute numbers.
d)
An algorithm is the process of breaking problems.
66.
What is a flowchart?
a)
A textual representation of algorithms.
b)
A graphical representation of algorithms.
c)
A cluster of different shapes.
d)
A program code written in Logo.
67.

Which of these is the set of rules that must be followed when typing code using a programming language?

a)

Syntax

b)

Value

c)

Expression

d)

Statement

68.
A person who writes code and communicates instructions to a computer.
a)
Code
b)
Programmer
c)
Command
d)
Program
69.

Which type of error causes a program to produce incorrect results, such as the sum of two values instead of the difference of two values?

a)

Syntax

b)

Logic

c)

Runtime

d)

System

70.

Which type of error is usually identified by the compiler or interpreter?

a)

Runtime

b)

Syntax

c)

System

d)

Logic

71.

Which tool used to plan computer programs is an English-like representation of program steps?

a)

Flowchart

b)

Debugging

c)

Pseudocode

d)

Assembly

72.

There are _____ types of programming errors.

a)

2

b)

5

c)

4

d)

3

73.

What type of error occurs while the program is running?

a)

Syntax

b)

Logic

c)

Runtime

d)

System

74.
Compilers, assemblers and interpreters are examples of this.
a)
Translator
b)
Run time environment
c)
Editor
d)
Error diagnostics
75.
Translates high level code into low level code.
a)
Interpreter
b)
Compiler
c)
Assembler
d)
Error diagnostics
e)
Interpreter and complier
76.
Examples of this include binary machine code and assembly language
a)
High level code
b)
Low level code
77.
This translator is used to translate all of the source code at the same time and creates one executable file
a)
Interpreter
b)
Compiler
c)
Assembler
78.
This translator is used to translate the source code one instruction at a time, but doesn't create an executable file.
a)
Interpreter
b)
Compiler
c)
Assembler
79.

Uses Mnemonics as command words (for example LDA, STA and ADD)

a)

High level code

b)

Low level code

c)

Assembly language

80.

The physical parts of a computer system are called?

a)

Hardware

b)

Software

c)

Hard copy

d)

Soft copy

81.

An input device is defined as . . .

a)

a device that sends data to the end user.

b)

a device that sends data to the computer.

c)

a device that creates soft copy.

d)

a device that creates hard copy.

82.

An output device is defined as . . .

a)

a device used to display or print data from a computer system.

b)

a device used to send data to a computer system.

c)

a device used to connect all components of a computer system.

d)

a device used to power up a computer system.

83.

What is the only function all C++ programs must contain?

a)

start()

b)

system()

c)

main()

d)

program()

84.

What punctuation is used to signal the beginning and end of code blocks?

a)

{ }

b)

-> and <-

c)

BEGIN and END

d)

( and )

85.

Which of the following is a correct comment?

a)

*/ Comments */

b)

** Comment **

c)

/* Comment */

d)

{ Comment }

86.
A list of instructions that enable a computer to perform a specific task is a...
a)
Computer Program
b)
Algorithm
c)
Machine Code
d)
Binary Code