WorksheetsQUIZADER
Total questions: 10
Worksheet time: 6mins
a = 4.5
b = 2
print (a//b)
2
2.0
2.2
none of the above
a = true
b = false
c = false
if a or b and c:
print ("QUIZADER")
else:
print ("quizader")
QUIZADER
quizader
quizaderQUIZADER
none of the above
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)
7
20
14
10
0
0
error
L1 = []
L1.append([1, [2, 3], 4])
L1.extend([7, 8, 9])
print(L1[0][1][1] + L1[2])
38
12
11
39
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)
18
10
5
6
Predict the output:
List = [True, 50, 10]
List.insert(2, 5)
print(List, "Sum is: ", sum(List))
[True, 50, 10, 5] Sum is: 66
[True, 50, 5, 10] Sum is: 66
[True, 50, 5, 10] Sum is: 65
TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’
Write the command to create an empty list named 'new_list'
(a)
Consider the string "Raghav"
What will be the output of the following command:
name.find("a")
1
2
A
a
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)
s
p
2
3
5
6
3
2
An (a) is a combination of values, variables, and operators.
