Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Back To Basics: Python Lesson 1 - 3 Review

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What data type is this?


28.7

a)

Integer

b)

Float

c)

String

d)

Variable

2.

What does Syntax Error mean?

a)

You are performing an operation on two data types that cannot be performed

b)

You are missing a punctuation in the code

c)

You forgot to declare a variable

3.

What is the output of this program?

a)

bob

b)

pete

c)

My name is bob

d)

My name is pete

4.

What is this sign call?


=

a)

equals to

b)

assignment operator

c)

operation

5.

What do you think is the output of this program?

a)

5

b)

6

c)

7

6.

What does the str() function do?

a)

Converts data to string

b)

Converts data to integer

c)

Converts data to float

7.

Select all the statements that are true

a)

The code editor allows you to save your code

b)

The console allows you to save your code

c)

The code editor does not allow you to save your code

d)

The console does not allow you to save your code

8.

True or False. Binary Code is how all computers use to count?

a)

True

b)

False

9.

ASCII stands for

a)

American Standard Code Information Insistence

b)

American Standard Code for Information Interchange

c)

American Standardised Codex Internal Inroads

10.

To get an input from the user, what function do you use?

a)

print()

b)

type()

c)

input()