Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python basic

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

how many mistakes are found in the code

a)

2

b)

3

c)

6

d)

no mistakes are found

2.

we have to use square bracket [ ] to make lists

a)

True

b)

False

3.

color = ["red","blue","green"]

print(color[1:2])

what is the result of the above code

a)

red

b)

blue

c)

green

d)

error

4.

Which of the following is used in Python to give a value to a variable

a)

:=

b)

==

c)

=

5.

type a code to make a list named 'color' with orange and green as string inside it

(a)  

6.

print(1+2)

what will the result be

a)

error

b)

3

c)

1+2

7.

what are the types of data

a)

int

b)

words

c)

strings

d)

decimals

8.
stores a piece of data, and gives it a specific name
a)
variable
b)
whitespace
c)
interpreter
d)
modulo
9.

what will the result be

a)

error

b)

keeps printing '1'

c)

'1'

10.

A data type consisting of true and false

a)

String

b)

Integer

c)

Float

d)

Boolean