علم البيانات | 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
Which of the following is not a valid Python variable name?
Anonymous Quiz
9%
variable_name
13%
VariableName
51%
variable-name
27%
_variableName
1
What is the default return value of a function that does not explicitly return a value?
Anonymous Quiz
12%
0
56%
None
26%
(empty string)
7%
False
Which keyword is used to define a class in Python?
Anonymous Quiz
84%
class
16%
def
0%
new
0%
create
How do you check if a key exists in a dictionary?
Anonymous Quiz
27%
key in dict
17%
dict.has_key(key)
22%
dict.contains(key)
34%
key.exists(dict)
The continue statement skips the current iteration of a loop and proceeds to the next iteration.
Anonymous Quiz
85%
True
15%
False
Pythons if statements require parentheses around the condition.
Anonymous Quiz
53%
True
47%
False
Which operator is used to check if two values are equal?
Anonymous Quiz
3%
=
6%
===
90%
==
1%
!=
Which operator is used for floor division in Python?
Anonymous Quiz
11%
/
78%
//
10%
%
1%
**
What is the output of following code?
result = 9 // 2
print(result)
Anonymous Quiz
8%
4.5
85%
4
3%
Error
4%
None of above
What is the output of following code?
result = -14 // 4
print(result)
Anonymous Quiz
53%
-3
33%
-4
9%
-3.5
6%
3
علم البيانات | DS2 Quizes
What will print(Python[::-1]) output?
غلط مطبعي
السؤال بالكامل غلط لانه لا يحتوي على " "

https://news.1rj.ru/str/Computer_DS_2/3480
What will print("Python"[::-1]) output?
Anonymous Quiz
44%
nothyP
39%
nohtyP
8%
Python
9%
Error
Is Python case sensitive when dealing with identifiers?
Anonymous Quiz
80%
Yes
11%
No
5%
None of above
5%
Machine dependent
What is the maximum possible length of an identifier?
Anonymous Quiz
24%
31 characters
22%
63 characters
19%
79 characters
35%
none of the mentioned
Which of the following is not allowed in Python?
Anonymous Quiz
10%
_a = 1
17%
__a = 1
42%
str = 1
31%
none of the mentioned
Which of the following is an invalid variable?
Anonymous Quiz
13%
my_string_1
67%
1st_string
8%
foo
12%
_
All keywords in Python are in _____
Anonymous Quiz
34%
lower case
6%
UPPER CASE
21%
Capitalized
39%
None of the mentioned
Which of the following cannot be a variable name in Python?
Anonymous Quiz
45%
init
11%
it
8%
on
36%
in