لا تريد أن تفوت شيئا؟

نصائح اجتياز امتحان الشهادة

آخر أخبار الامتحانات ومعلومات الخصم

برعاية وحديثة من قبل خبرائنا

نعم، أرسل لي النشرة الإخبارية

خذ اختبارات أخرى عبر الإنترنت

السؤال #1
What is the expected behavior of the following code?
A. it outputs list assignment index out of rangecorrect
B. the code is erroneous and it will not execute
C. it outputs
D. it outputs error
عرض الإجابة
اجابة صحيحة: A
السؤال #2
What is the expected behavior of the following code?
A. the code is erroneus and it will not execute
B. it outputs [2, 4]
C. it outputs [4, 2]correct
D. it outputs [0, 1, 2, 3, 4]
عرض الإجابة
اجابة صحيحة: C
السؤال #3
What is the expected behavior of the following code?
A. it outputs 1
B. it outputs 2correct
C. the code is erroneous and it will not execute
D. it outputs 3
عرض الإجابة
اجابة صحيحة: B
السؤال #4
With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)
A. import pypack
B. import module_a from pypack
C. import module_a
D. from pypack import module_acorrect
عرض الإجابة
اجابة صحيحة: AD
السؤال #5
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1]? (Select two answers)
A. put self
B. self put stire(1])correct
C. self
D. self
عرض الإجابة
اجابة صحيحة: ABD
السؤال #6
What can you do if you don't like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta
A. you can make an alias for the name using the a 1 i a s keyword
B. nothing; you need to come to terms with it
C. you can shorten it to alpha
D. you can make an alias for the name using die as keywordcorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #7
What would you used instead of XXX if you want to check weather a certain ‘key’ exists in a dictionary called dict? (Select two answers)
A. ‘key’ in dictcorrect
B. dict [‘key’] != Nonecorrect
C. dict
D. ‘key’ in dict
عرض الإجابة
اجابة صحيحة: ABD
السؤال #8
Which of the following expressions evaluate to True? (Select two answers)
A. str(1-1) in '012345£739'[:2]correct
B. 'phd' in 'alpha'
C. 'deb' not in 'abcde' [::-1]correct
D. 'True' not in 'False'correct
عرض الإجابة
اجابة صحيحة: ACD
السؤال #9
What can you do if you don’t like a long package path like this one?
A. you can make an alias for the name using the alias keywordcorrect
B. nothing, you need to come to terms with it
C. you can shorten it to alpha
D. you can make an alias for the name using the as keywordcorrect
عرض الإجابة
اجابة صحيحة: AD
السؤال #10
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)
A. dir={'Mom':5551234567, 'Dad':5557654321>correct
B. dir={'Mom':'5551234567', * Dad':'5557654321'}
C. dir={Mom:5551234567, Dad:5557654321}correct
D. dir={Mom:'5551234567', Dad:'5557654321'}correct
عرض الإجابة
اجابة صحيحة: ACD
السؤال #11
A method for passing the arguments used by the following snippet is called:
A. sequential
B. named
C. positionalcorrect
D. keyword
عرض الإجابة
اجابة صحيحة: C
السؤال #12
What is the expected behavior of the following code?
A. it outputs 1correct
B. it outputs 0
C. it raises an exception
D. it outputs 2
عرض الإجابة
اجابة صحيحة: A
السؤال #13
What is the expected output of the following snippet?
A. 3
B. 1
C. 2
D. the code is erroneouscorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #14
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)
A. a ( ) == 4correct
B. a is not Nonecorrect
C. b ( ) == 4
D. a ! = bcorrect
عرض الإجابة
اجابة صحيحة: ABD
السؤال #15
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1]? (Select two answers)
A. put self
B. self put stire(1])correct
C. self
D. self
عرض الإجابة
اجابة صحيحة: BD
السؤال #16
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)
A. a is not Nonecorrect
B. a ! =bcorrect
C. b () ==4
D. a () == 4
عرض الإجابة
اجابة صحيحة: AB
السؤال #17
The following expression 1+-2 is:
A. equal to 1
B. invalid
C. equal to 2
D. equal to -1correct
عرض الإجابة
اجابة صحيحة: D
السؤال #18
Which of the following lambda definitions are correct? (Select two answers)
A. lanbda x, y; return x\y - x%y
B. lambda x, y; x\y - x%ycorrect
C. lambda (x, y = x\y x%y
D. lambda x, y; (x, y)correct
عرض الإجابة
اجابة صحيحة: BD
السؤال #19
And operator able to perform bitwise shifts is coded as (Select two answers)
A. --correct
B. ++
C. <
D. >>correct
عرض الإجابة
اجابة صحيحة: ACD
السؤال #20
An operator able to perform bitwise shifts is coded as (select two answers)
A. - -correct
B. ++
C. <
D. >>correct
عرض الإجابة
اجابة صحيحة: ACD
السؤال #21
Which of the following literals reflect the value given as 34.23? (Select two answers)
A.
B. 3423e-2correct
C.
D. 3423e2
عرض الإجابة
اجابة صحيحة: AB
السؤال #22
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)
A. len(a)== len (b)correct
B. a [0]-1 ==b [0]correct
C. a [0]== b [0]
D. b [0] - 1 ==a [0]
عرض الإجابة
اجابة صحيحة: AB
السؤال #23
What will be the value of the i variable when the while e loop finishes its execution?
A. 1correct
B. 0
C. 2
D. the variable becomes unavailable
عرض الإجابة
اجابة صحيحة: A
السؤال #24
What is the expected output of the following code?
A. 3correct
B. 5
C. 4
D. an exception is raised
عرض الإجابة
اجابة صحيحة: A
السؤال #25
What will be the value of the i variable when the while e loop finishes its execution?
A. 1correct
B. 0
C. 2
D. the variable becomes unavailable
عرض الإجابة
اجابة صحيحة: A
السؤال #26
Which of the following sentences are true? (Select two answers)
A. Lists may not be stored inside tuplescorrect
B. Tuples may be stored inside listscorrect
C. Tuples may not be stored inside tuples
D. Lists may be stored inside listscorrect
عرض الإجابة
اجابة صحيحة: ABD
السؤال #27
The following expression 1+-2 is:
A. Aequal to 1
B. Binvalid
C. Cequal to 2
D. Dequal to -1
عرض الإجابة
اجابة صحيحة: D
السؤال #28
A variable stored separately in every object is called:
A. there are no such variables, all variables are shared among objects
B. a class variable
C. an object variable
D. an instance variablecorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #29
Assuming that the code below has been placed inside a file named code.py and executed successfully, which of the following expressions evaluate to True? (Select two answers)
A. str(Object) == 'Object'correct
B. _name == _main_'correct
C. Class
D. _module_ == 'ClassA'correct
E. len(Class
F. __bases__) == 1
عرض الإجابة
اجابة صحيحة: ABD
السؤال #30
What will the value of the i variable be when the following loop finishes its execution?
A. 10
B. the variable becomes unavailable
C. 11
D. 9correct
عرض الإجابة
اجابة صحيحة: D

View The Updated Python Exam Questions

SPOTO Provides 100% Real Python Exam Questions for You to Pass Your Python Exam!

عرض الإجابات بعد التقديم

يرجى إرسال البريد الإلكتروني الخاص بك والواتس اب للحصول على إجابات الأسئلة.

ملحوظة: يرجى التأكد من صلاحية معرف البريد الإلكتروني وWhatsApp حتى تتمكن من الحصول على نتائج الاختبار الصحيحة.

بريد إلكتروني:
رقم الواتس اب/الهاتف: