wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

p2rt

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Where's the error here?

a)

Bracket

b)

Input type

c)

Comma

d)

Variable

2.

A user inputs 6. What will be the error?

a)

Variable is wrong

b)

Input type is wrong

c)

Brackets are wrong

3.

Where's the error here?

a)

Bracket

b)

Variable

c)

Input type

d)

Missing syntax/word

4.

Which of the following command will take a "Input"

a)

Input()

b)

the input()

c)

input()

d)

input("Hello")

5.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
6.

Smallest element of of python coding is called __________

a)

Identifiers

b)

Token

c)

Keywords

d)

Delimiters

7.

Which one of the following is the correct extension of the Python file?

a)

.py

b)

/python

c)

.p

d)

None of these

8.

What do we use to define a block of code in Python language?

a)

Key

b)

Brackets

c)

Indentation

d)

None of these

9.

What is the output of the following code snippet?

print(2 ** 3)

a)

A) 8

b)

B) 6

c)

C) 9

d)

D) 5

10.

What is the file extension of python ?

a)

.py

b)

.pyth

c)

.pth

d)

.pthon