علم البيانات | 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
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
78- In Python, super() can be used even when there is no method name conflict between the parent and child classes.
Anonymous Quiz
63%
a) True
37%
b) False
79- Abstract classes in Python cannot have any methods implemented.
Anonymous Quiz
52%
a) True
48%
b) False
🤔1
81- In Python, method overriding allows a subclass to define its own version of a method.
Anonymous Quiz
90%
a) True
10%
b) False
_ represents an entity in the real world with its identity and behaviour.
Anonymous Quiz
8%
A method
64%
An object
18%
A class
11%
An operator
82- Polymorphism is the ability to perform different operations using the same function or operator.
Anonymous Quiz
88%
a) True
12%
b) False
83- The __init__() function is called automatically when a class is destroyed.
Anonymous Quiz
56%
a) True
44%
b) False
84- The pass statement is used to delete the content of a function.
Anonymous Quiz
22%
a) True
78%
b) False
85- How can you start a block of code for a function or loop?
Anonymous Quiz
63%
a) With a colon :
10%
b) With a semicolon ;
8%
c) With curly braces {}
19%
d) With parentheses ()