Review of Python Quiz 2

Share with others

Welcome to your Review of Python Quiz 2 on July 2, 2022

Name
E-mail
School Name
Q11. How many times the following loop will execute?
for i in range(20,200,20):
Q12. How many times the following loop will execute?

i = 100
while(i<100):
     print(i)
     i+=10

Q13. And, Or and Not are ___________ operators.
Q14. Following two statements will return the same result(T/F)
1. 7.0/2
2. 7//2
Q15. Write the output of the following code :
s="www.csiplearninghub.com"
print("csip" in s)
Q16. Write the output of the following code :

s = 9
def sum(s):
    s=3
    s=s*9
    print(s)
sum(5)

Q17. List in python can hold mixed data type (T/F)
Q18. Write the output of the following code:
x=5
def fun():
    y=3
    global x
    x=x*10
    print(x)
print(x)
fun()
Q19. Write the output of the following code :
def fun(n):
    s=1
    while(n):
        s=s*n
        n=n//10
   print(s)
fun(5)
Q20. Write the output of the following code :
def fun(n):
    s=1
    while(n):
        s=s*n
        n=n-1
   print(s)
fun(3)


Share with others

Leave a Reply