wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python script

Total questions: 16

Worksheet time: 9mins

Name
Class
Date
1.

python was founded by ________

a)
b)

Torvald

c)

Guido Van

d)

All

2.

identify python membership operators.

a)

in, not in

b)

is , is not

c)

in, in not

d)

is not, is

3.

how many keywords did python 3.7 consist of

a)

32

b)

30

c)

31

d)

33

4.

a= 63

a<<2

what is output for bit-wise left-shift

a)

230

b)

243

c)

250

d)

252

5.

identify valid identifiers (variable or variables)

a)

a123

b)

_n

c)

1a

d)

n%4

e)

n 9

6.

identify the applications where python can be used

a)

Web Applications

b)

Software Development

c)

3D CAD Applications

d)

Enterprise Applications

e)

all the above

7.

identify bulit-in module( or s)

a)

os

b)

math

c)

random

d)

statistics

e)

sys

8.

identify python Data structures

a)

list

b)

tuple

c)

dict

d)

set

e)

All the mentioned

9.

Python provides _______ function to returns type of the variable passed.

a)

type()

b)

typeof()

c)

both a and b

d)

non

10.

what is the buit-in module one should import to work on regex

a)

regular expression

b)

re

c)

regex

d)

all the above

11.

identify python multi-line comments

a)

"""

"""

b)

'''

'''

c)

both a and b

d)

=begin

=cut

12.

is python supports do-while loop?

a)

no

b)

yes

13.

#output of the following code

i =1

while(i<5):

print(i,end="")

i=i+1

a)

1234

b)

1

2

3

4

c)

12345

d)

1245

14.

what is the keyword used to declare a function name in python?

a)

sub

b)

function

c)

fun

d)

def

15.

num = int(input("enter any number:"))

#what int denotes from above statment

a)

interger

b)

float

c)

character

d)

double

16.

what is the built-in function used to sort the given list of elements in python

a)

sort

b)

sorted

c)

merge

d)

srt