Total Ten Questions. Each Carry Two Marks
Total Time 20Min.
Quiz Summary
0 of 10 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 10 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
Q1) What is the output displayed by the program given below?
def f(x): c=x+1 d=f1(x+1) summ=0 for i in d: summ+=i return c+summ def f1(y): list1=[y,y+1,y+2] return list1 a=5 z=f(a) print(z)
CorrectIncorrect -
-
Question 2 of 10
2. Question
Q2) What is the output displayed by the program given below?
def fun(num): count=0 while num!=0: count+=1 num>>=1 return count z=fun(435) print(z)
CorrectIncorrect -
-
Question 3 of 10
3. Question
Q3) What is the output displayed by the program given below?
def jumble(x,y): x=2*x+y return x x=2 y=5 y=jumble(y,x) x=jumble(y,x) print(x)
CorrectIncorrect -
-
Question 4 of 10
4. Question
Q4) What is the output displayed by the program given below?
def fun(x): if x>100: return x-10 else: return fun(fun(x+11)) z=fun(95) print(z)
CorrectIncorrect -
-
Question 5 of 10
5. Question
Q5) What is the output displayed by the below program? Choose the correct option.
def f(x): y=x+1 z=x+2 def f1(z): if z<5: z=z+2 f(z) z=z+2 if y<5: f1(y) print(z) f(1)
CorrectIncorrect -
Question 6 of 10
6. Question
Q6) What is the output displayed by the program given below?
def f(a,b,c): if ((a>=b) and(c<b)): return b elif (a>=b): return f(a,c,b) else: return f(b,a,c) z=f(9,8,2) print(z)
CorrectIncorrect -
Question 7 of 10
7. Question
Q7) What is the output displayed by the program given below? Choose the correct option.
def f(x,y): if y>64: return x,y else: return f(x-2,y+1) l,m=f(1024//2,1) print(l,m)
CorrectIncorrect -
Question 8 of 10
8. Question
Q8) What is the output displayed by the program given below?
a=0 def f(n): global a if n<=0: return 1 if (n>3): a=n return f(n-2)+2 return f(n-1)+a z=f(5) print(z)
CorrectIncorrect -
-
Question 9 of 10
9. Question
Q9) What is the output displayed by the program given below? Choose the correct option.
def convert(n): if n==0: pass else: convert(n//2) print(n%2,end="") convert(72)
CorrectIncorrect -
Question 10 of 10
10. Question
Q10) How many times one is printed by the program given below?
d=1 def count(n): global d print(n) print(d) d+=1 if(n>1): count(n-1) print(d) count(3)
CorrectIncorrect -