علم البيانات | 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:108
 
x = [1, 2, [3, 4]]
print(len(x[2]))
ID:108 - What will the following code output?
Anonymous Quiz
60%
a) 2
19%
b) 3
10%
c) 4
11%
d) None
ID:110
 
class CountryInfo:
def print_language(self):
print('English')
class Lebanon(CountryInfo):
def print_language(self):
print('Arabic')
lb = Lebanon()
lb.print_language()
ID:110 - What will the following code print?
Anonymous Quiz
11%
a) English
82%
b) Arabic
2%
c) Error
5%
d) Nothing
ID:111
 
class Salary:
value = 0
def print_salary(self):
print('Salary:', self.value)
salary = Salary()
salary.value = 1500
salary.print_salary()
ID:111 - What is the output of the following code?
Anonymous Quiz
8%
a) Salary: 0
72%
b) Salary: 1500
0%
c) Salary: None
20%
d) Error
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)