Total Ten Questions.
Total Time 15Min.
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 13 marks please watch the concepts and retake the quiz again.
- 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 below program?
str1="hello" str2="hello" str1.replace("l","f") if str1 is str2: print("you are good") else: print("you are bad")
CorrectIncorrect -
-
Question 2 of 10
2. Question
Q2) What is the output displayed by the below program?
str1="learning" list1=list(str1) list2=list1[-7::1] print("".join(list2[-2:-5:-1]))
CorrectIncorrect -
-
Question 3 of 10
3. Question
Q3) What is the output displayed by the below program? Do not type list brackets in output.
list1=[10,20,30,10,20,40,80,10,60,30] list2=[] list3=[] for i in list1: if i in list2: if i in list3: pass else: list3.append(i) else: list2.append(i) print(list3)
CorrectIncorrect -
-
Question 4 of 10
4. Question
Q4) What is the output displayed by the below program?
list1=["hello","learning","monkey","I","need","a","solution"] length=5 for i in list1: if len(i)>length: pass else: list1.append("counter") set1=set(list1) print(len(set1))
CorrectIncorrect -
-
Question 5 of 10
5. Question
Q5) How many times hello is printed by the below Program?
x={1:"hello",2:"learning",3:"monkey",1:"hai",2:"earning"} for i in x: print(x[i]) print(x[1])
CorrectIncorrect -
Question 6 of 10
6. Question
Q6) What is the output displayed by the below program?
t=(10,20,10,20,[10,20]) t1=t t1[4].append(20) if(t is t1): print("be prepared") else: print("good")
CorrectIncorrect -
-
Question 7 of 10
7. Question
Q7) How many times good will be displayed by the below program?
s={1,2,3,4,3,2,1} for i in s: if i%2==0: print("good") else: print("bad")
CorrectIncorrect -
Question 8 of 10
8. Question
Q8) Which of the following Programs Execute?
#program 1 s={1,2,"hello"} print(s) #program 2 s1={1,2,"hello",{"key1":1, "key2":2}} print(s1)
CorrectIncorrect -
Question 9 of 10
9. Question
Q9) What is the output displayed by the below program? Do not write list or any data type brackets in output.
x={1:"hello",2:"hai",3:"hello",4:"hai",2:"bye"} list1=[] dict1={} count=0 for i in x.items(): list1.append(list(i)) for j in list1: dict1[count]=j count+=1 print(dict1[1][1])
CorrectIncorrect -
-
Question 10 of 10
10. Question
Q10) What is the output displayed by the below program?
list1=[1,2,3,4,5] list2=list1 list2.append(6) if (id(list1)==id(list2)): print("good") else: print("bad")
CorrectIncorrect -