علم البيانات | 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
57- In Python, string indices start at 1.
Anonymous Quiz
21%
a) True
79%
b) False
58- The for loop in Python can be used to iterate over strings.
Anonymous Quiz
89%
a) True
11%
b) False
59- The break statement is used to exit a loop in Python.
Anonymous Quiz
85%
a) True
15%
b) False
60- The in operator is used to check if a value exists within a list.
Anonymous Quiz
82%
a) True
18%
b) False
61- In Python, every class must inherit from a base class.
Anonymous Quiz
38%
a) True
62%
b) False
62- A method in a class cannot be called without creating an instance of the class.
Anonymous Quiz
61%
a) True
39%
b) False
63- The __init__ method in Python is called the constructor of a class.
Anonymous Quiz
87%
a) True
13%
b) False
64- In Python OOP, encapsulation means hiding the class data by making attributes private.
Anonymous Quiz
87%
a) True
13%
b) False
65- Inheritance allows a new class to extend the properties and methods of an existing class.
Anonymous Quiz
87%
a) True
13%
b) False
👎6
69- What is the correct syntax to create an instance of the class Mobile with the name "Nokia"?
Anonymous Quiz
26%
a) nokia = Mobile()
52%
b) nokia = Mobile("Nokia")
21%
c) nokia = Mobile.Nokia()
2%
d) nokia = Mobile[Nokia]
70- In Python, the __del__() method is called when an object is destroyed.
Anonymous Quiz
67%
a) True
33%
b) False
71- The self keyword allows access to the attributes and methods of the class instance.
Anonymous Quiz
80%
a) True
20%
b) False
72- Method override allows two methods with the same name but different arguments in one class.
Anonymous Quiz
61%
a) True
39%
b) False
73- In Python, inheritance allows a class to inherit attributes and methods from a parent class.
Anonymous Quiz
91%
a) True
9%
b) False
75- Static methods do not need self as their first parameter.
Anonymous Quiz
80%
a) True
20%
b) False
76- A class can inherit multiple parent classes in Python.
Anonymous Quiz
91%
a) True
9%
b) False
77- Polymorphism refers to the ability to use a single method or operator with different objects.
Anonymous Quiz
77%
a) True
23%
b) False