wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

First day quiz!

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What is syntax?

a)

It's edible and tastes sour

b)

a set of programming rules to follow

c)

it's what stores the data

d)

it's used to describe our codes

2.

Which data below is count as an integer?

a)

4

b)

"Bernerd is smart"

c)

True

d)

6.9

3.

Which data below is count as a string?

a)

print()

b)

hello

c)

3.1423

d)

"Pizza Hut"

4.

Which data below counts as a float?

a)

a float is whatever floats your boat

b)

4

c)

3.333

d)

75691

5.

Which data below counts as bool?

a)

True

b)

"True"

c)

False

d)

01010001

6.

What is wrong with this variable assignment?

9gag = 'fun'

a)

the string is not double-quoted but single-quoted instead

b)

"fun" is not a valid data

c)

it doesn't use an assignment operator

d)

the variable name starts with the number 9

7.

is this ok?

a = 5

b = 10

a = b

a)

OK

b)

NOT OK

8.

What will be the final value of b?

a = 2

a += 2

b = 4

b = b + a

a)

8

b)

7

c)

63

d)

999

9.

The difference(s) between keywords and variables is/are

a)

Keywords are built-in, while variables are user-defined

b)

Keywords are double or single-quoted, while variables are not

c)

Keywords have to be defined in order for the program to recognize it, while variables don't have to

d)

keywords are delicious while variables are not

10.

In Python everything after # is ignored, this is called a

(a)