علم البيانات | 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
49- Which of the following is used to read a file in Python?
Anonymous Quiz
20%
a) open()
45%
b) read()
24%
c) file()
11%
d) input()
50- How can you make a string in Python all uppercase?
Anonymous Quiz
68%
a) upper()
13%
b) capitalize()
4%
c) toupper()
16%
d) uppercase()
👍1
51- What is the output of print(5 < 10 and 10 < 20)?
Anonymous Quiz
84%
a) True
13%
b) False
0%
c) 5
4%
d) None
53- Which method is used to return a string with the first letter capitalized?
Anonymous Quiz
70%
a) capitalize()
11%
b) upper()
0%
c) noscript()
20%
d) first_upper()
54- What will print("abbcd".find("b")) output?
Anonymous Quiz
49%
a) 1
38%
b) 2
2%
c) 3
11%
d) 0
55- In Python, the continue statement exits a loop.
Anonymous Quiz
25%
a) True
75%
b) False
56- In Python, single-line comments are created using the # symbol.
Anonymous Quiz
88%
a) True
13%
b) False
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