Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python

Total questions: 13

Worksheet time: 4mins

Name
Class
Date
1.

What is CLI based?

a)

graphical based

b)

Boot based

c)

Command line based

d)

Windowed based

2.

Web cam is _ based ?

a)

arithmetic based

b)

input based

c)

output based

d)

process based

3.

Python was developed by ______

a)

Guido van Rossum

b)

Goido van Rossum

c)

British Python Movie

d)

Python snake

4.

what will be the output of this question:-

a="gtreggreat"

print(a[5:])

a)

error

b)

gtreggreat

c)

'great'

d)

great

5.

which is the string value? (note:- remember that there are multiple answers in this question.)

a)

a="harsh"

b)

a

c)

a=a

d)

a='tiger'

e)

a=785

6.

what will be the output of the given equation:-

a=((2*5)(3*10))/5

print(a)

a)

8

b)

60.0

c)

error

d)

45.0

e)

300

7.

what will be output of the given equation:-

a=[45,78,96,52,41,'harsh']

print(a.sort)

a)

[41,45,52,78,96,'harsh']

b)

[41,45,52,78,96]

c)

error

d)

['harsh']

8.

'print' is a _

a)

function

b)

string

c)

integer

d)

class

9.

which number is not an integer?

a)

45

b)

22

c)

1.0

d)

8

10.

what will be the output of the given equation:-

print("c:\netflix\harsh\parr")

a)

c:

etflix\harsh\parr

b)

c:

netflix\harsh\parr

c)

c:\

netflix\harsh\parr

d)

error

11.

for removing special meaning from a statement we can use:-

a)

row string

b)

raw string

c)

string factors

d)

it is not possible

12.

if we have to remove point values after division we can use:-

a)

//

b)

**

c)

remove()

d)

\\

13.

if we have to reverse the given list we can use:-

a=[1,2,3,4,5]

a)

a.reverse()

b)

a[-1:-4]

c)

a.sort()

d)

a.remove()