علم البيانات | DS2 Quizes – Telegram
علم البيانات | DS2 Quizes
965 subscribers
96 photos
2 videos
14 files
110 links
"قناة علمية متخصصة في مجال علم البيانات، قناة خاصة بالاختبارات MCQ ."
القناة العامة: @Computer_DS_1
النقاشات: @Computer_DS1
قناة الاختبارات: @Computer_DS_2
بوت التواصل والمشاركات : @DS_Combot
Download Telegram
ID:113 - What will be the output of the following?
Anonymous Quiz
28%
a) 1 3 5 7 9 11
6%
b) 12589
22%
c) error
43%
D) infinity number
ID:114
 
d = {"john":40, "peter":45}
print(d["john"])
ID:114 - What will be the output of the following?
Anonymous Quiz
75%
A. 40
2%
B. 45
17%
C. “john”
6%
D. “peter”
ID:115
 
str = "StackHowTo"
print(str[5:8])
ID:115 - What will be the output of the following?
Anonymous Quiz
9%
A. StackHow
24%
B. HowTo
61%
C. How
6%
D. StackHowTo
ID:116
class test: 
def __init__(self):
print ("Hello World" )
def __init__(self):
print ("Bye World")
obj=test()
علم البيانات | DS2 Quizes
ID:116 class test: def __init__(self): print ("Hello World" ) def __init__(self): print ("Bye World") obj=test()
ID:116 - What will be the output of the following?
Anonymous Quiz
15%
Hello World
37%
Bye World
27%
Error
21%
None of above
ID:117
 
def cube(x):
return x * x * x
x = cube(5)
print(x)
ID:117 - What will be the output of the following?
Anonymous Quiz
0%
a) 26
88%
b) 125
8%
c) 525
5%
d) None of above
ID:118
 
i = 1:
while True:
if i%3 == 0:
break
print(i)
علم البيانات | DS2 Quizes
ID:118 i = 1: while True: if i%3 == 0: break print(i)
ID:118 - What will be the output of the following?
Anonymous Quiz
13%
A) 1 2 3
16%
B)1 2
45%
C)infinite loop
26%
D) syntax Error
ID:119
 
d = {0, 1, 2}
for x in d:
print(x)
ID:119 - What will be the output of the following?
Anonymous Quiz
15%
A. {0, 1, 2} {0, 1, 2} {0, 1, 2}
65%
B. 0 1 2
18%
C. Syntax_Error
3%
D. None of these above
ID:120
 
i = s = 0
while i <= 3 :
s += i
i = i+1
print(s)
ID:120 - What will be the output of the following?
Anonymous Quiz
39%
A. 3
14%
B. 4
28%
C. 6
19%
D. 0
ID:121
 
print("apple is a fruit"[7:10])
ID:121 - What will be the output of the following?
Anonymous Quiz
1%
a. Apple
60%
b. s a
12%
c. Fruit
26%
d. None of the above
ID:122
 
x = (1, 2, 3)
x += (4,)
print(x)
ID:122 - What will be the output of the following?
Anonymous Quiz
44%
a) (1, 2, 3, 4)
4%
b) (1, 2, 3)
10%
c) (4, 1, 2, 3)
41%
d) (1, 2, 3, (4,))
var = "Python"
print(var[2:2] == "")
Anonymous Quiz
31%
True
37%
False
8%
None
25%
SyntaxError
👍1
var = "Python"
print(var[:] != var)
Anonymous Quiz
25%
True
63%
False
2%
None
10%
SyntaxError
👍1