wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz1_7A

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

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

a)

print

b)

input

c)

output

d)

command

2.

What is the output from the following code?

print ("hello world")

a)
Hello World
b)
hello world
c)
print hello world
3.

Which of the following code is a Python Comment?

a)

#this is a comment

b)

{ this is a comment }

c)

" this is a comment "

d)

( this is a comment )

4.

Quelle est la syntaxe correcte pour afficher "Hello World" en Python ?

a)

echo("Hello World");

b)

p("Hello World")

c)

print("Hello World")

d)

echo "Hello World"

5.

Quelle est l'extension de fichier correcte pour les fichiers Python ?

a)
b)
c)

.pyth

d)

.pt

6.

1==0

a)

True

b)

False

7.

What is the missing instruction?

a)

Print

b)

print

c)

(print)

d)

"Print"

8.
In python the ' INTEGER data type' can be defined as...?
a)
holds alphanumeric data as text
b)
holds whole numbers
c)
holds numbers with a decimal point
d)
holds either ‘true’ or ‘false’
9.
In python the ' FLOAT data type' can be defined as...?
a)
holds alphanumerical data
b)

holds whole numbers

c)

holds a decimal point in a number

d)
hold either true or false
10.
In python the ' BOOLEAN data type' can be defined as...?
a)
holds alphanumerical data
b)
holds whole numbers
c)
holds a number with a decimal point
d)
holds either true or false
11.
In python the ' STRING data type' can be defined as...?
a)
holds alphanumeric text
b)
hold whole numbers
c)
holds numbers with a decimal point
d)
holds either a true or false value
12.
What is a variable?
a)

A memory location where you store values

b)
a type of graphics
c)
Data type
d)
a type of memory
13.

The statement input allows us to:

a)

input values to the code

b)

Read what the user typed

c)

order the imported statements

d)

show there name

14.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
15.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
16.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

'Dave'

c)

name

d)

(name)

17.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
18.
What is Python?
a)
text based programming language
b)
word processor 
c)
spreadsheet
d)
block based programming language
19.
Which statement correctly assigns the string "Tanner" to the variable name?
a)
name  = print( "Tanner")
b)
input("Tanner")
c)
name = "Tanner"
d)
name = input("Tanner")
20.
In the following code, "city" is an example of a what?
a)
List
b)
Loop
c)
Variable
d)
Array