wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is coding?

a)

A set of instructions given to a computer

b)

Programming Language

c)

Scratch, AppInventor and Python

d)

A list of procedures

2.

What is a programming language?

a)

A computer language used to communicate with computers

b)

A language used to write instructions to a computer

c)

A language in which programmers talk to each other

d)

None of these

3.

How many programming languages are there?

a)

3

b)

5

c)

10

d)

More than 10

4.

__________ is the process of finding errors and fixing them within a program.

a)

Coding

b)

Debugging

c)

Compiling

d)

Uploading

5.

Rockets are programmed using a computer.

a)

True

b)

False

6.

Which of the following is not a programming language?

a)

Scratch

b)

Python

c)

Java

d)

Windows

7.

What is a variable?

a)

A place in memory to store values

b)

The length of a computer program

c)

A value that stays the same throughout the program

d)

A value which may vary within the program

8.

Which symbol is used in Python to assign values to a variable?

a)

!=

b)

#

c)

=

d)

==

9.

In Python, adding spaces at the beginning of a line of code is called

a)

Indentation

b)

Margin

c)

Spacing

10.

What is a data type that can only be True or False?

a)

integer

b)

float

c)

boolean

d)

string

11.

Which statement will check if a is equal to b?

a)

if a==b

b)

if a=b:

c)

if a!=b:

d)

if a==b:

12.

Which keyword is needed at the start of a function declaration?

a)

start

b)

for

c)

print

d)

def

13.

Which of the following are comparison operators in Python?

a)

==

!=

b)

>

<

c)

>=

<=

d)

All of these

14.

What do you mean by Iteration?

a)

Procedure

b)

Sequencing

c)

Repetition

d)

Assignment

15.

while 1==2:

How many times will this loop run?

a)

0

b)

1

c)

2

d)

Infinite