Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QUIZADER

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

a = 4.5

b = 2

print (a//b)

a)

2

b)

2.0

c)

2.2

d)

none of the above

2.

a = true

b = false

c = false

if a or b and c:

print ("QUIZADER")

else:

print ("quizader")

a)

QUIZADER

b)

quizader

c)

quizaderQUIZADER

d)

none of the above

3.

result=0

def find_sum(num1,num2):

if(num1!=num2):

result=num1+num2

else:

result=2*(num1+num2)

find_sum(3,4)

print(result)

find_sum(5,5)

print(result)

a)

7

20

b)

14

10

c)

0

0

d)

error

4.

L1 = []

L1.append([1, [2, 3], 4])

L1.extend([7, 8, 9])

print(L1[0][1][1] + L1[2])

a)

38

b)

12

c)

11

d)

39

5.

Predict the output


def find_avg(list_num):

result_sum=0

for num in list_num:

result_sum+=num

result_avg=result_sum/len(list_sum)

find_avg([5,8,5])

print(result_avg)

a)

18

b)

10

c)

5

d)

6

6.

Predict the output:


List = [True, 50, 10]

List.insert(2, 5)

print(List, "Sum is: ", sum(List))

a)

[True, 50, 10, 5] Sum is: 66

b)

[True, 50, 5, 10] Sum is: 66

c)

[True, 50, 5, 10] Sum is: 65

d)

TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’

7.

Write the command to create an empty list named 'new_list'

(a)  

8.

Consider the string "Raghav"

What will be the output of the following command:


name.find("a")

a)

1

b)

2

c)

A

d)

a

9.

Predict the output of the following code if the input given is :2

3


code:


a=int(input())

b=int(input())

s=a+b

p=a*b

print(s)

print(p)

a)

s

p

b)

2

3

c)

5

6

d)

3

2

10.

An (a)   is a combination of values, variables, and operators.