wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Week 1 & 2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Who developed Python Programming Language?

a)

Guido van Rossum

b)

Ljubomir Perkovic

c)

Niene Rossie

d)

Lerdorf Reine

2.

What is the maximum possible length of an identifier?

a)

31 characters

b)

32 characters

c)

63 characters

d)

Any length

3.

Is Python case sensitive when dealing with identifiers?

a)

Yes

b)

No

c)

Machine dependent

d)

None of the mentioned

4.

Which of the following is an invalid variable?

a)

my_var_1

b)

1st_attempt

c)

_error

d)

Too

5.

Which of the following is an INVALID statement?

a)

xyz = 2,000,000

b)

x y z = 20 30 40

c)

x,y,z = 20, 30, 40

d)

x_y_z = 2,000,000

6.

What will be the value of the following Python expression?

float(5*int(25.69)//3)

a)

40

b)

40.0

c)

41

d)

41.0

7.

Operators with the same precedence are evaluated in which manner?

a)

Right to Left

b)

Left to Right

c)

Can't say

d)

None of the mentioned

8.

What will be the value of Y in the following statement

Y = 2 +9 *((3*12)-8)/10

a)

30.0

b)

30.8

c)

27.2

d)

28.4

9.

The expression 2**2**3 is evaluates as: (2**2)**3.

a)

True

b)

False

10.

Which of the following cannot be a variable?

a)

on

b)

in

c)

_init_

d)

it