wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Grade 10 Computer Quiz

Total questions: 43

Worksheet time: 43mins

Name
Class
Date
1.

Write your name.

4 lines
2.

Write your class and section.

4 lines
3.

Which level of a programming language is Machine Code?

a)

Low

b)

High

4.

Which level of a programming language is Assembly Code?

a)

Low

b)

High

5.

Which level would create the fastest code to execute?

a)

Low

b)

Assembly

c)

High

6.

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

a)

Low

b)

Assembly

c)

High

7.
Machine Code uses mnemonics to represent instructions
a)
True
b)
False
8.
An advantage of programming in Low Level is
a)
Easier for us to understand
b)
Easier to debug
c)
Programs require less file space
9.
A disadvantage of programming in Low Level is
a)
No technical skill is required
b)
Needs to be translated before it can be executed
c)
Difficult for humans to debug
10.
An advantage of programming in High Level is
a)
Easier for us to understand
b)
Useful for device drivers
c)
Programs execute faster than other generations
11.
A disadvantage of programming in High Level is
a)
A lot of code must be translated before it can be executed
b)
Difficult to debug
c)
High level of technical skill is required
12.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

13.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

14.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
15.
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
16.
Which type is incorrect?
a)
int
b)
double
c)
float
d)
array
17.

What is Decomposition?

a)

Breaking the problem down to look for specific patterns

b)

Solving the problem by placing the algorithm into a single flowchart

c)

Breaking the task down into smaller, more manageable tasks

d)

Identifying where the algorithm needs to be repeated so that it save you time when writing it

18.
A person who writes code and communicates instructions to a computer.
a)
Code
b)
Programmer
c)
Command
d)
Program
19.
Process of finding and fixing errors in the syntax so the computer program will run properly
a)
Bugs
b)
Sequence
c)
Debugging
d)
Command
20.
Which generation of a programming language is Assembly Code?
a)
1st Generation (Low)
b)
2nd Generation (Low)
c)
3rd Generation (High)
21.
What does IDE stand for?
a)
Integrated Debugging Equipment
b)
Integrated Debugging Environment
c)
Integrated Development Equipment
d)
Integrated Development Environment
22.
What is software?
a)
any set of instructions that tells the hardware what to do
b)
the video card on the monitor
c)
the operating system
d)
the monitor and computer case
23.

The computer works with the principle of

a)

Input ---> Process ---> Output

b)

Input ---> Output ---> Process

c)

Output ---> Process ---> Input

24.
What is hardware?
a)
all the ports and buttons of a computer
b)
is any part of your computer that has a physical structure.
c)
is any part of your desktop
d)
software
25.
_______ is how we write code
a)
Syntax
b)
Loops
c)
Variables
d)
Functions
26.

Which of the following are languages of computer ?

a)

Machine Language

b)

Assembly Language

c)

High Level Language

d)

All of above

27.
Variables cannot be changed.
a)
False
b)
True
28.
Constants cannot be changed.
a)
True
b)
False
29.
Which of these values would be useful as a constant?
a)
Pi
b)
Di
c)
Ni
d)
Pie
30.
Variable names can't start with a number.
a)
True
b)
False
31.
Variable names can include spaces.
a)
False
b)
True
32.
Some specific words can't be used as variables.
a)
True
b)
False
33.

What does <= mean?

a)

less than

b)

greater than

c)

less than or equal to

d)

greater than or equal to

34.

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

a)

start()

b)

system()

c)

main()

d)

program()

35.

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

a)

{ }

b)

-> and <-

c)

BEGIN and END

d)

( and )

36.

Which of the following is a correct comment?

a)

*/ Comments */

b)

** Comment **

c)

/* Comment */

d)

{ Comment }

37.
Which command moves the shown text to the next line?
a)
\t
b)
\n
c)
\r
d)
\s
38.
After running the following code, what will be the value of x?
y = 3;
x = 5 * y;
a)
3
b)
5
c)
15
d)
0
39.
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
40.

Which of the following is NOT a logical operator in C++ language?

a)

&

b)

&&

c)

||

d)

!

41.

Which of the following is NOT a comparison operator in C++ language?

a)

>

b)

<=

c)

=

d)

==

42.

Evaluate the following expressions to true or false


5 >= (1+6)-4

a)

True

b)

False

43.

Evaluate the following expressions to true or false

5+1==6 || 8-1>4

a)

True

b)

False