wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

From Scratch to Python Quiz Unit 1 ,1.1-1.3

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Which of these is correct?

a)

print (hello)

b)

print (hello ' "')

c)

print "(hello)"

d)

print ('hello')

2.

What is a variable?

a)

A memory location where you store values

b)

Data type

c)

A function

d)

Prints line for you

3.

What symbol is used in python to assign values to a variable?

a)

equals =

b)

plus +

c)

forward slash /

d)

asterisk *

4.

Which statement correctly assigns the string "Max" to the variable name?

a)

name = print( "Max")

b)

input("Max")

c)

name = "Max"

d)

name = input("Max")

5.

 What does the print function do in python?

a)

It's a variable.

b)

It allows data input.

c)

It displays an output

d)

It loops the code.

6.

What will be the output?

number = "21"

print ("number")

a)

number

b)

21

c)

print()

d)

number21

7.

The name of the screen where your code appears is called a ___.

answer choices

command

console

monitor

a)

command

b)

console

c)

monitor

d)

page