علم البيانات | DS2 Quizes – Telegram
علم البيانات | DS2 Quizes
966 subscribers
96 photos
2 videos
14 files
110 links
"قناة علمية متخصصة في مجال علم البيانات، قناة خاصة بالاختبارات MCQ ."
القناة العامة: @Computer_DS_1
النقاشات: @Computer_DS1
قناة الاختبارات: @Computer_DS_2
بوت التواصل والمشاركات : @DS_Combot
Download Telegram
ID:112
 
class A:
x = 10
obj = A()
obj.x = 20
print(A.x)
👍3
ID:112 - What will the following code output?
Anonymous Quiz
61%
a) 20
30%
b) 10
3%
c) None
6%
d) Error
class A:
x = 10
obj = A()
obj.y = 20
print(obj.y)
علم البيانات | DS2 Quizes
class A: x = 10 obj = A() obj.y = 20 print(obj.y)
What will the following code output?
Anonymous Quiz
4%
10
65%
20
30%
Error
1%
None of above
class A:
def __init__():
x = 10
obj = A()
obj.y = 20
print(obj.y)
علم البيانات | DS2 Quizes
class A: def __init__(): x = 10 obj = A() obj.y = 20 print(obj.y)
What will the following code output?
Anonymous Quiz
74%
20
5%
10
16%
Error
4%
None of above
ID:113
 
i = 1
while True:
if i % 2 == 0:
break
print (i)
i += 2
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)