wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Key Programming Concepts

Total questions: 28

Worksheet time: 16mins

Name
Class
Date
1.

A (a)   is a named space in memory that holds a data of any type that can be changed again and again.

2.

What is a constant?

a)

A named space in memory that holds one item of data that cannot be changed once it has been assigned.

b)

A number that cannot be divided by zero

c)

A number that always has the same number of digits after the decimal point.

d)

A number that cannot be changed by adding one to it.

e)

An integer that you cannot divide anything by.

3.

Symbols that tell you what to do with two numbers such as + and - are called (a)   .

4.

Which operator is used to represent multiplication?

a)

+

b)

-

c)

*

d)

/

e)

^

5.

Which operator is used to represent an exponent?

a)

+

b)

-

c)

/

d)

^

e)

*

6.

Which operator is used to represent 'to the power of'?

a)

*

b)

/

c)

+

d)

**

e)

//

7.

What is 'integer division'?

a)

Dividing a number by another number equally

b)

Dividing a number by another number unequally

c)

Dividing a number by another number and representing the answer as a whole number

d)

Dividing a number by another number and representing the answer as a fraction

e)

Dividing a number by another number and representing the answer as a floating point number

8.

What does the DIV operator do?

a)

Gives you only the whole number part of a division operation

b)

Gives you only the whole number part of a multiplication operation

c)

Gives you only the decimal part of a division operation

d)

Gives you the remainder of a division operation

e)

Gives the remainder of an addition operation

9.

Which operation gives you the remainder of a division?

a)

MOD

b)

DIV

c)

//

d)

/

e)

CHAR

10.

What is the name given to the task of storing a data item in a variable?

a)

equation

b)

assignment

c)

evaluation

d)

comparison

e)

retrieving

11.

You can use the file. (a)   () function to add data to a text file.

12.

You need to use the (a)   () function, which is a built-in function in Python, to accept data from the user via the keyboard.

13.

To output text to the computer screen, you should use the built in Python function called (a)   ().

14.

You can use an assignment operation to store the results of a function inside a variable like the example below:

name = input("What is your name? ")

a)

True

b)

False

c)

Sometimes

d)

It depends

15.

Which symbol do you use to assign values to variables?

a)

!=

b)

==

c)

=

d)

!

e)

=>

16.

Which symbol do you use to compare two items to see if they are the same?

a)

=>

b)

==

c)

!=

d)

=<

e)

=

17.

Which of these Python commands is used to code a selection programming structure?

a)

while

b)

for

c)

if... elif ...else

d)

if ... then ...else

e)

if ... elseif ... else

18.

Which of these will create a count controlled loop?

a)

while...do

b)

for x in range(0,100):

c)

while True:

d)

while False:

e)

while n > 0:

19.

Which of these commands will create a condition controlled loop?

a)

repeat 4 [ fd 100 rt 90]

b)

for n in range(0, 200, 2):

c)

while gameOver == False:

d)

repeat 4 [ fd 10 repeat 20 [fd 10 rt 12]]

20.

What do you call a loop inside a loop?

a)

loop the loop

b)

loopy loop

c)

nested loop

d)

double loop

e)

indented loop

21.

What do you call a deer with no eyes?

a)

plain deer

b)

rarely spotted deer

c)

no eye deer

d)

don't know deer

22.

Which of these is another name for a list?

a)

one dimensional array

b)

two dimensional array

c)

three dimensional array

d)

stack

e)

queue

23.

What is another name for a two dimensional array?

a)

a database

b)

a table

c)

a list

d)

a record

e)

a compact disc

24.

Which of these is not a database?

a)

Access

b)

Flat file

c)

Relational

d)

No SQL

e)

PowerPoint

25.

Which of these is a language used to manage data in a database?

a)

Visual Basic

b)

Structured Query Language (SQL)

c)

Hypertext Markup Language (HTML)

d)

Extensible Markup Language (XML)

e)

Unified Modelling Language (UML)

26.

Which of these is used for integer division?

a)

/

b)

_

c)

-

d)

//

e)

%

27.

Which operator is used for a division calculation?

a)

+

b)

%

c)

&

d)

/

e)

*

28.

What is the highest value digit used in hexadecimal?

a)

9

b)

0

c)

A

d)

F

e)

H