علم البيانات | 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: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
Q3. Which of the following is NOT a basic principle of OOP?
Anonymous Quiz
5%
Encapsulation
7%
Inheritance
7%
Polymorphism
80%
Concatenation
Q5. Which keyword is used to inherit a class in Python?
Anonymous Quiz
35%
extends
20%
inherit
17%
superclass
28%
class
👍2👎2
Q7. Which access specifier in Python indicates that an attribute should not be accessed directly from outside the class?
Anonymous Quiz
11%
public
77%
private
9%
protected
4%
hidden
Q9. Which OOP principle allows methods in a subclass to have the same name as methods in its superclass, but with different implementations?
Anonymous Quiz
13%
Inheritance
60%
Polymorphism
18%
Encapsulation
9%
Abstraction
Q10. What is the process of defining a new class based on an existing class called?
Anonymous Quiz
5%
Polymorphism
71%
Inheritance
16%
Abstraction
7%
Encapsulation