Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic of Python-1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Is Python case sensitive?

a)

Yes

b)

No

c)

Maybe

d)

Depends up on the version of python

2.

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

a)

.python

b)

.pl

c)

.py

d)

.p

3.

Is Python code compiled or interpreted?

a)

Python code is both compiled and interpreted

b)

Python code is neither compiled nor interpreted

c)

Python code is only compiled

d)

Python code is only interpreted

4.

Which of the following character is used to give single-line comments in Python?

a)

//

b)

#

c)

!

d)

/*

5.

Which of the following functions is a built-in function in python?

a)

fact()

b)

print()

c)

seed()

d)

squareroot()

6.

Which code is correct?

a)

ptinf("Hello World")

b)

print("Helloworld")

c)

printf "hello world"

d)

print (hello world)

7.

Which symbol is used for product calculations?

a)

x

b)

X

c)

*

d)

**

8.

Which one is integer datatype?

a)

w=1

b)

x=10.00

c)

y=010010123459714523697

d)

z=xa

9.

Select the string datatypes.

a)

+91547963

b)

B+ve

c)

1243

d)

5679 222^2  

10.

Dictionary is an unordered set of a key-value pair of items. This statement is.......

a)

True

b)

False