Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python fundamentals

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

(a)   is smallest individual unit in a program.

2.

Choose the INVALID identifiers from the following

a)

NUmbEr1

b)

1NUMBer

c)

A_B

d)

A&B

3.

________ are data items that have a fixed value

a)

Tokens

b)

Literals

c)

Keyword

d)

Operators

4.

+, /, * are example of which token ?

This token triggers some computation

(a)  

5.

Choose the keyword from the following

a)

IF

b)

Else

c)

iF

d)

else

6.

Choose the INVALID identifiers from the following

a)

NUmbEr1

b)

1NUMBer

c)

A_B

d)

A&B

7.

________ are data items that have a fixed value

a)

Tokens

b)

Literals

c)

Keyword

d)

Operators

8.

Is Python case sensitive when dealing with identifiers?

a)

Yes

b)

No

c)

machine dependent

d)

none of these

9.

Which of the following is a valid statement?

a)

abc = 1,000,000

b)

a b c = 1000 2000 3000

c)

a,b,c = 1000, 2000, 3000

d)

a_b_c = 1,000,000

10.

Who is the writer of Python language?

a)

Bjarne Stroustrup

b)

Guido van Rossum

c)

Dennis Ritchie

d)

None

11.

What is the output of

9 / 2 ?

a)

4.5

b)

4

c)

5

d)

None

12.

What is the output of

7//2 ?

a)

3

b)

4

c)

3.5

d)

None

13.

What is the value of the expression 100 / 25?

a)

4

b)

4.0

c)

"4.0"

d)

'4.0'

14.

print("3"+"3")

a)

33

b)

6

c)

INVALID OUTPUT

15.

In Python, the script mode programs can be stored with an extension ------

a)

.pyt

b)

.py

c)

.pyh

d)

.pyn