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%
-
If you score less than 16 Marks. Please watch the videos again and take the test again in 3-4 days
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 10
1. Question
1) What is the output displayed by the below code?
world=181 zero=0 while world!=0: remindme=world%10 zero=zero*10+remindme world=world//10 print(zero)
CorrectIncorrect -
-
Question 2 of 10
2. Question
2) What is the output displayed by the below code?
num=187 ite=0 summ=0 while(num>0): rem=num%10 po=8**ite summ=summ+po*rem ite+=1 num=num//10 print(summ)
CorrectIncorrect -
-
Question 3 of 10
3. Question
3) What is the output displayed by the below code. Choose correct Answer.
for n in range(6,0,-1): print(n) n-=1
CorrectIncorrect -
Question 4 of 10
4. Question
4) What is the output displayed by below program. Choose correct option.
i=0 while(i<2): j=0 while(j<=3*i): print(j,end=" ") j+=3 print() i+=1
CorrectIncorrect -
Question 5 of 10
5. Question
Q5) The given program is written to calculate sum of first 10 multiples of 10. Identify missing statement and incorrect statement
i=0 #statement 1 summ = 0 # statement2 while(i<=1000): # statement 3 summ=summ+i # statement 4 --missing statement-- print(summ)
CorrectIncorrect -
Question 6 of 10
6. Question
Q6) In the given code. How many times the print statement executes?
for x in range(5,0,-1): for y in range(1,x): print(y)
CorrectIncorrect -
-
Question 7 of 10
7. Question
Q7) What is the output displayed by the below program?
a=10 b=5 c=20 if a<b: if b<c: print(1) else: print(2) else: if a+b<c: if a+c>b: print(3) else: print(4)
CorrectIncorrect -
-
Question 8 of 10
8. Question
Q8) How many stars are displayed after executing the below code?
a=7 b=5 while b>=1: print("*") for j in range(1,b,2): print("*") print("*") b-=2 print("*")
CorrectIncorrect -
-
Question 9 of 10
9. Question
Q9) How many times hello is displayed in the below program?
num=15 for i in range(14): if(num%7==0): print(num) num+=1 elif (num%7==1): print(num) num+=1 elif (num%7==2): print("hello") num+=1 elif (num%7==3): num+=1 continue else: if (num%7==5): num+=1 print("hello") else: num+=1 continue print("hello") print("hello")
CorrectIncorrect -
-
Question 10 of 10
10. Question
Q10) How many times # will be displayed?
for i in range(5): for j in range(0,2*i,2): for k in range(j//2,0,-2): print("#")
CorrectIncorrect -