Search Header Logo
Python

Python

Assessment

Presentation

Computers

8th Grade

Medium

Created by

amina helmy

Used 3+ times

FREE Resource

0 Slides • 35 Questions

1

Multiple Choice

What is a variable?
1
A box(memory location) where you store values
2
a type of graphics
3
Data type
4
a type of memory

2

Multiple Choice

What symbol is used in python to assign values to a variable?
1
equals =
2
plus + 
3
forward slash /
4
asterisk *

3

Multiple Choice

When you have an error in your code what is the term to summarise finding and fixing that error?
1
Error checking
2
Debugging
3
Syntax finder
4
Error finder

4

Multiple Choice

A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
1
True
2
False

5

Multiple Choice

What is Python?
1
text based programming language
2
word processor 
3
spreadsheet
4
block based programming language

6

Multiple Choice

What does the print function do in python?
1
It's a variable.
2
It can input data.
3

It displays an output

4
It loops the code.

7

Multiple Choice

What is the Python built-in function used to display numbers and text on the screen?

1

print

2

input

3

output

4

command

8

Multiple Choice

The correct way to write a variable in Python?
1
my_variable = 10
2
my variable = 10
3
my_variable is 10
4
my_variable: 10

9

Multiple Choice

In python the ' FLOAT data type' can be defined as...?
1
holds alphanumerical data
2

holds whole numbers

3

holds a decimal point in a number

4
hold either true or false

10

Multiple Choice

In python the ' BOOLEAN data type' can be defined as...?
1
holds alphanumerical data
2
holds whole numbers
3
holds a number with a decimal point
4
holds either true or false

11

Multiple Choice

what is correct code for INTEGER in python?
1
in
2
ing
3
int

12

Multiple Choice

What is the output from the following code?

print ("hello world")

1
Hello World
2
hello world
3
print hello world

13

Multiple Choice

Question image
Which of the following is a float?
1
new_var = 1234
2
new_var = True
3
new_var = 1.234
4
new_var = "True"

14

Multiple Choice

What extension must you add to the end of a file when saving?
1
.xlsx
2
.pptx
3
.docx
4
.py

15

Multiple Choice

What does the term 'debug' mean?
1
Identify errors and fix them.
2
Making a calculation
3
A set of instructions
4
Looking at code

16

Multiple Choice

A data type consisting of numbers, letters and symbols.
1
String
2
Integer
3
Float
4
Boolean

17

Multiple Choice

Which is the most appropriate data type for: "13th December"
1
Float
2
Boolean
3
Integer
4
String

18

Multiple Choice

A location in memory used to store data that can be changed.
1
Constant
2
Value
3
Variable
4
Iteration

19

Multiple Choice

What function is used to output a message in python?

1

print("")

2

input=name

3

print

4

name=input

20

Multiple Choice

What syntax would you use to create a name variable?

1

name=input()

2

input=name

3

name=input{}

4

name=INPUT

21

Multiple Choice

Why would you use a loop?

1

To repeat a piece of code

2

To create a loop

3

To input data

22

Multiple Choice

Which is the Python logo?

1
2
3
4

23

Multiple Choice

Which two statements are used to implement iteration?
1
IF and WHILE
2
ELSE and WHILE
3
FOR and WHILE
4
IF and ELSE

24

Multiple Choice

FOR loops are

1

loops which run an unknown number of times

2

loops which run for a specific number of times

3

the same as if statements

4

not part of programming

25

Multiple Choice

Which type of loop iterates until instructed otherwise?

1

FOR loop

2

WHILE loop

26

Multiple Choice

WHILE loops are

1

loops which run an unknown number of times

2

loops which run for a specific number of times

3

the same as if statements

4

not part of programming

27

Multiple Choice

A condition is

1

a statement that is either True or False

2

a string

3

an integer

4

a list

28

Multiple Choice

Which kind of loop would be used?


I need a program that will keep letting me add money to a piggy bank until I get to £100.

1

FOR Loop

2

WHILE Loop

29

Multiple Choice

Code for

Five is greater than two!

1

if 5 > 2:

print("Five is greater than two!")

2

if 5 = 2:

print("Five is greater than two!")

3

if 5 > 2: Print("Five is greater than two!")

30

Multiple Choice

Code for

257

Hello, World!

1

x = 257

y = "Hello, World!"

print(y)

print(x)

2

x = 257

y = "Hello, World!"

print(x)

print(y)

3

x = 257

y = Hello, World!

print x

print y

31

Multiple Choice

Code for

b is greater than a

1

a = 33

b = 200


if b > a:

print("b is greater than a")

2

a = 33

b = 200


if b < a:

print("b is greater than a")

3

a = 330

b = 200


if b > a:

print("b is greater than a")

32

Multiple Choice

The output of the program

x = 4

x = "Sally"

print(x)

1

four

2

Saly

3

Sally

33

Multiple Choice

What symbol do you use to make a comment in Python?
1
@
2
¬
3
;
4
#

34

Multiple Choice

What button do you press to compile (run) your program so that it runs in the shell?
1
F3
2
F5
3
F7
4
F9

35

Multiple Choice

What extension must you add to the end of a file when saving?
1
.xlsx
2
.pptx
3
.docx
4
.py
What is a variable?
1
A box(memory location) where you store values
2
a type of graphics
3
Data type
4
a type of memory

Show answer

Auto Play

Slide 1 / 35

MULTIPLE CHOICE