wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y9 Summary

Total questions: 44

Worksheet time: 23mins

Name
Class
Date
1.

What data type would you use to store a person's age in Python?

a)

`float`

b)

`int`

c)

`string`

d)

`boolean`

2.

Which of the following is the correct way to use a selection statement to check if a number is greater than 10?

a)

`if number > 10:`

b)

`if number >> 10:`

c)

`if number = 10:`

d)

`if number == 10:`

3.

What is the result of the arithmetic operation 8×28 \times 2 in Python?

a)

16

b)

10

c)

82

d)

4

4.

Which relational operator is used to check if two values are not equal in Python?

a)

`=`

b)

`==`

c)

`!=`

d)

`<=`

5.

What data type would you use to store the value `True` or `False` in Python?

a)

`int`

b)

`string`

c)

`boolean`

d)

`float`

6.

How do you represent a floating point number in Python?

a)

By using a decimal point

b)

By using a comma

c)

By using a colon

d)

By using a semicolon

7.

Which of the following arithmetic operators is used for exponentiation in Python?

a)

`*`

b)

`**`

c)

`%`

d)

`/`

8.

What is the output of the relational operation 5<35 < 3 in Python?

a)

`True`

b)

`False`

c)

`5`

d)

`3`

9.

In Python, what is the result of the operation 9/29 / 2 ?

a)

4

b)

4.5

c)

5

d)

4.0

10.

Which selection statement is used to execute a block of code multiple times based on a condition in Python?

a)

`if`

b)

`for`

c)

`while`

d)

`elif`

11.

What is the correct way to check if `x` is equal to `10` in Python?

a)

`x = 10`

b)

`x == 10`

c)

`x != 10`

d)

`x === 10`

12.

Which of the following is a mutable data type in Python?

a)

`string`

b)

`tuple`

c)

`list`

d)

`int`

13.

Which relational operator is used to check if a value is greater than or equal to another value in Python?

a)

`>`

b)

`<`

c)

`>=`

d)

`<=`

14.

What is the output of the following Python code snippet? ```python x = 10 y = 20 print(x > y) ```

a)

`True`

b)

`False`

c)

`10`

d)

`20`

15.

Which of the following is not an arithmetic operator in Python?

a)

`+`

b)

`-`

c)

`*`

d)

`==`

16.

How do you create a variable with the numeric value 5 in Python?

a)

`x = 5`

b)

`int x = 5`

c)

`x := 5`

d)

`var x = 5`

17.

Which function in Python is used to read input from the console?

a)

`input()`

b)

`read()`

c)

`scan()`

d)

`get()`

18.

What is the default data type in Python?

a)

Real

b)

String

c)

Integer

d)

Number

19.

What is the Python code needed to ask a user for input?

a)

input("what is your name?")

b)

input="what is your name?"

c)

(input)=what is your name?

d)

input=what is your name?

20.

What is the Python code needed to display a word on the screen?

a)

print"hello"

b)

"hello"

c)

print("hello")

d)

print="hello"

21.

Which character represents a comment in Python code?

a)

*

b)

#

c)

&

d)

$

22.

Select all examples of iteration

a)

FOR loop

b)

WHILE loop

c)

START loop

d)

REPEAT loop

23.

What is the white space used to enter code called?

a)

Whitespace

b)

IDOL

c)

Shell

d)

IDLE

24.

How many variables can you assign in a piece of code?

a)

Depends on your PC's clock speed

b)

256

c)

infinity gauntlet

d)

infinite

25.

What is the term given to breaking down a problem into more, easier to discern steps?

a)

Abstraction

b)

Abtraction

c)

Subtraction

d)

Attraction

26.
What is the correct definition for a VARIABLE?
a)
a changeable value, such as a score in a computer game.
b)
a value that cannot be changed
27.
what is the code for a STRING in python?
a)
str
b)
stri
c)
stg
28.
what is correct code for INTEGER in python?
a)
in
b)
ing
c)
int
29.

How is a 1 or 0 expressed in binary?

a)

As a single binary digit

b)

1 or 0

c)

A Nybble

d)

Half of a Byte

30.

What does an 'IF' statement allow us to do?

a)

Pause the code and allow us to think

b)

Repeat part of the code

c)

Make a decision or branch our code off to another part of the program

d)

Execute the next line of code in order

31.

Convert 1011 0010 into hexadecimal

a)

AA

b)

BC

c)

B2

d)

C1

32.

Convert 1101 1100 into denary

a)

DC

b)

123

c)

21

d)

220

33.
What will the output be from the following code?
print(3*4+5)
a)
27
b)
17
c)
12
d)
SyntaxError
34.
What does this symbol represent?
a)
Start
b)
Sub
c)
Decision
d)
Process
35.
What does this shape represent?
a)
Input/Output
b)
Decision
c)
Process
d)
Start/Stop
36.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
37.
What is the Output if the temperature is:
19
a)
Below Freezing
b)
Above Freezing
38.

Which is the correct formula to multiply?

a)

=B6*C6

b)

B6*C6

c)

B6C6*

d)

*B6C6

39.

What function do you use to add cells together?

a)

SUM

b)

MIN

c)

MAX

d)

AVERAGE

40.

SUM, AVERAGE, MAX and IF are examples of what?

a)

Functions

b)

Tools

c)

Options

d)

Statistical Tools

41.

Which symbol do we use to make an cell an absolute cell (Stays the same)?

a)

%

b)

£

c)

$

d)

!

42.

Changing the appearance of a cell based on a rule is called?

a)

Conditional Formatting

b)

Data Validation

c)

User Input

d)

Sorting

43.

Which of the following is a valid way to start a comment in Python?

a)

//

b)

#

c)

/*

d)

44.

Which of the following is a built-in function in Python?

a)

print()

b)

echo()

c)

write()

d)

display()