علم البيانات | 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
Are classes can be viewed as factories or templates for constricting to create a new specific objects instances??
Anonymous Quiz
84%
True ✅️
16%
False ❌️
Does python supports OOP through the provision of classes ?
Anonymous Quiz
89%
True ✅️
11%
False ❌️
.......... a collection of functions and attributes.
Anonymous Quiz
62%
A-Class
18%
B-Object
21%
C-B & A
0%
Else
print (0.1+0.2==0.3)
Anonymous Quiz
61%
True
23%
False
12%
Error
4%
machine dependent
for i in range (1,6,3):
print (i)
Anonymous Quiz
40%
1,6,3
40%
1 4
3%
4 1
17%
1 2 3 4 5 6 3
for i in range (10):
if i==5:
break else: print (i)
Anonymous Quiz
11%
0 1 2 3 4 5 6 7 8 9
11%
1 2 3 4 5
16%
0 1 2 3 4 5
62%
0 1 2 3 4
What is the output of the following code?
x = [1, 2, 3, 4]
print(x[1:3])
Anonymous Quiz
7%
[1, 2]
46%
[2, 3]
19%
[1, 2, 3]
29%
[2, 3, 4]
Which of the following is a valid way to define a Python function?
Anonymous Quiz
80%
def function_name():
9%
function function_name():
7%
function_name def():
3%
define function_name():
How do you create a new list with the values [1, 2, 3]?
Anonymous Quiz
77%
list = [1, 2, 3]
16%
list = (1, 2, 3)
3%
list = {1, 2, 3}
3%
list = 1, 2, 3
What will be the result of len("hello")?
Anonymous Quiz
10%
4
83%
5
1%
6
6%
None
Which keyword is used to handle exceptions in Python?
Anonymous Quiz
7%
catch
59%
except
4%
throw
31%
handle
What is the result of 7 // 2 in Python?
Anonymous Quiz
67%
3
22%
3.5
5%
2
7%
4
What is the output of the following code?
x = [1, 2, 3]
x.append(4) print(x)
Anonymous Quiz
84%
[1, 2, 3, 4]
8%
[1, 2, 3]
3%
[4, 1, 2, 3]
4%
[1, 2, 3, [4]]
Which function is used to get the data type of an object?
Anonymous Quiz
80%
type()
8%
id()
4%
data()
8%
class()
What will print(Python[::-1]) output?
Anonymous Quiz
52%
nohtyP
16%
Python
9%
Phtyno
23%
nohtyP
😢4
Which method removes the last item from a list?
Anonymous Quiz
45%
pop()
39%
remove()
11%
delete()
4%
discard()
How do you start a comment in Python?
Anonymous Quiz
8%
//
13%
/**
78%
#
1%
--
What is the output of print(bool([]))?
Anonymous Quiz
12%
True
72%
False
5%
0
11%
None