علم البيانات | 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
What is the output of this expression, 3*1**3?
Anonymous Quiz
26%
27
18%
9
55%
3
1%
1
The expression int(x) implies that the value of variable x is converted to integer.
Anonymous Quiz
89%
True
11%
False
Which one of the following has the highest precedence in the expression?
Anonymous Quiz
22%
Exponential
7%
Addition
62%
Parentheses
8%
Multiplication
1- Which of the following is NOT a feature of OOP in Python?
Anonymous Quiz
5%
A) Inheritance
5%
B) Polymorphism
87%
C) Procedural Programming
3%
D) Encapsulation
1
5- Which method is called when an object is created?
Anonymous Quiz
83%
A) __init__
7%
B) __new__
8%
C) __create__
1%
D) __build__
7- What does the super() function refer to in Python?
Anonymous Quiz
76%
A) The parent class
7%
B) The current class
15%
C) The current instance
1%
D) A sibling class
8- Which of the following is NOT an example of polymorphism in Python?
Anonymous Quiz
13%
A) Method overriding
1%
B) Method overloading
21%
C) Operator overloading
64%
D) Creating multiple instances of a class
10- Python uses indentation to define code blocks.
Anonymous Quiz
85%
A) True
15%
B) False
11- In Python, a dictionary can have duplicate keys.
Anonymous Quiz
49%
A) True
51%
b) False
12- Python supports both procedural and object-oriented programming paradigms.
Anonymous Quiz
87%
A) True
13%
B) False
👎1
13- The import statement in Python is used to include external modules or libraries in a noscript.
Anonymous Quiz
81%
A) True
19%
B) False
1
14- Which of the following is a valid way to define a Python function?
Anonymous Quiz
12%
a) def function_name[]:
9%
b) function function_name():
77%
c) def function_name():
2%
d) function_name def():
15- How do you create a new list with the values [1, 2, 3]?
Anonymous Quiz
84%
a) list = [1, 2, 3]
12%
b) list = (1, 2, 3)
4%
c) list = {1, 2, 3}
0%
d) list = 1, 2, 3
👏1
16- What will be the result of len("hello")?
Anonymous Quiz
7%
a) 4
93%
b) 5
0%
c) 6
0%
d) None
18- What is the result of 7 // 2 in Python?
Anonymous Quiz
72%
a) 3
18%
b) 3.5
7%
c) 2
3%
d) 3.5