Quiz-summary
0 of 15 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
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 have to finish following quiz, to start this quiz:
Results:
0 of 15 questions answered correctly
Time Spent:
Time has elapsed
Average score |
|
Your score |
|
Download your certificate |
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Answered
- Review
-
Question 1 of 15
1.
What will be the output of following?
lst = [1, 2, 3, ‘a’, 4, ‘A’]
print(lst.sort())Correct
Incorrect
-
Question 2 of 15
2.
What will be the output of the following?
lst = (2, [1])
lst[1].append(43)
print(lst)Correct
Incorrect
-
Question 3 of 15
3.
What will be the value of lst?
lst = 2, 4 ,6
print(lst)Correct
Incorrect
-
Question 4 of 15
4.
What will be the output of following?
def func():
print(func.A)
func.A = 10
func()Correct
Incorrect
-
Question 5 of 15
5.
Find the error in following code?
class Test:
VAL= 2def display1(self):
print(self.VAL)
def display2(cls,value):
print(cls.VAL)t = Test()
t.display1()
t.display2(“hello”)Correct
Incorrect
-
Question 6 of 15
6.
What will be the output of following?
def test():
return 1, 2, 3
print(test())Correct
Incorrect
-
Question 7 of 15
7.
What will be the output of following?
def x(val):
val[0] = 1v= [2,3,4]
x(v)
print(v)Correct
Incorrect
-
Question 8 of 15
8.
What will be the output of following?
a=65
print(‘[%c]’%a)Correct
Incorrect
-
Question 9 of 15
9.
What will be output of the following ?
print(2 == 2.0)
print(2 == ‘2’)Correct
Incorrect
-
Question 10 of 15
10.
What will be output of the following?
x = [1,2,4]
y = [5,4,1]
print(x.intersection(y))Correct
Incorrect
-
Question 11 of 15
11.
What will be output of the following?
dict1 = {“a”:1, “b”:2}
dict2 = {“b”:2, “a”:1}
print(dict1 == dict2)Correct
Incorrect
-
Question 12 of 15
12.
What will be output of the following?
a = [1,2]
b = a
b += [3,4]
print(a)Correct
Incorrect
-
Question 13 of 15
13.
What will be output of the following?
a = “python”
b = [1, 2, 3]
tup = (a, b)
print(tup[1][1:])Correct
Incorrect
-
Question 14 of 15
14.
What will be output of the following?
a = 2*2//2
b = 3//2*3
print(a,b)Correct
Incorrect
-
Question 15 of 15
15.
What will be output of the following?
a = “python”
b = “pythoN”
print(a>b)Correct
Incorrect