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

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

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

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

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

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

السؤال #1
What is the expected behavior of the following code?
A. it outputs 2correct
B. the code is erroneous and it will not execute
C. it outputs 1
D. it outputs 3
عرض الإجابة
اجابة صحيحة: A
السؤال #2
What is the expected output of the following code? def foo(x,y,z): return x(y) - x(z) print{f00(lambda x: x % 2, 2, 1) )
A. 1
B. 0
C. -1correct
D. an exception is raised
عرض الإجابة
اجابة صحيحة: C
السؤال #3
What is the expected behavior of the following code?
A. it outputs error
B. it outputs list assignment index out of rangecorrect
C. the code is erroneous and it will not execute
D. it outputs
عرض الإجابة
اجابة صحيحة: B
السؤال #4
Which of the following sentences are true? (Select two answers)
A. lists may not be stored inside tuples
B. tuples maybe stored inside lists
C. tuples may not be stored inside tuples
D. lists may be stored inside lists
عرض الإجابة
اجابة صحيحة: BD
السؤال #5
The following class hierarchy is given. What is the expected output of the code?
A. BB
B. CC
C. AA
D. BCcorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #6
The__bases__property contains:
A. base class locations (addr)
B. base class objects (class)
C. base class names (str)correct
D. base class ids (int)
عرض الإجابة
اجابة صحيحة: C
السؤال #7
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 ! = b
عرض الإجابة
اجابة صحيحة: AB
السؤال #8
Which of the following expression evaluate to True? (Select two answers)
A. len(''?) == 1
B. len("""""") == ocorrect
C. chr(ordCA') + 1) == 'B'
D. ord("Z") - ord("z") -- ord("0")
عرض الإجابة
اجابة صحيحة: B
السؤال #9
What is true about Python packages? (Select two answers)
A. the sys
B. _pycache_is a folder that stores semi-completed Python modulescorrect
C. a package contents can be stored and distributed as an mp3 file
D. a code designed to initialize a package's state should be placed inside a file named init
عرض الإجابة
اجابة صحيحة: AB
السؤال #10
What is the expected output of the following snippet?
A. 1correct
B. 4
C. 2correct
D. 3
عرض الإجابة
اجابة صحيحة: AC
السؤال #11
What is true about Python packages? (Select two answers)
A. the__name__variable content determines the way in which the module was runcorrect
B. a package can be stored as a tree of sub-directories/sub-folderscorrect
C. __pycache__is the name of a built-in variablecorrect
D. hashbang is the name of a built-in Python function
عرض الإجابة
اجابة صحيحة: ABC
السؤال #12
You are going to read 16 bytes from a binary file into a bytearray called data. Which lines would you use? (Select two answers)
A. data = bytearray (16) bf
B. data = binfile
C. bf
D. data = bytearray (binfile
عرض الإجابة
اجابة صحيحة: A
السؤال #13
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
السؤال #14
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
السؤال #15
Assuming that the V variable holds an integer value to 2, which of the following operators should be used instead of OPER to make the expression equal to 1? V OPER 1 -
A. <<<
B. >>>
C. >>correct
D. <<
عرض الإجابة
اجابة صحيحة: C
السؤال #16
What is true about the following snippet? (Select two answers)
A. the code will raise an unhandled exception
B. the siring I feel fine 'will be seencorrect
C. the string it's nice to see you will be seen
D. the string what a pity will be seencorrect
عرض الإجابة
اجابة صحيحة: BD
السؤال #17
How many lines does the following snippet output?
A. three
B. onecorrect
C. two
D. four
عرض الإجابة
اجابة صحيحة: B
السؤال #18
Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)
A. math
B. math
C. math
D. math
عرض الإجابة
اجابة صحيحة: AB
السؤال #19
What is true about Python packages? (Select two answers)
A. the__name__variable content determines the way in which the module was run
B. a package can be stored as a tree of sub - directories/sub - folders
C. __pycache__is the name of a built - in variable
D. hashbang is the name of a built - in Python function
عرض الإجابة
اجابة صحيحة: D
السؤال #20
Can a module run like regular code?
A. yes, and it can differentiate its behavior between the regular launch and importcorrect
B. it depends on the Python versioncorrect
C. yes, but in cannot differentiate its behavior between the regular launch and import
D. no, it is not possible; a module can be imported, not runcorrect
عرض الإجابة
اجابة صحيحة: ABD
السؤال #21
Assuming that String is six or more letters long, the following slice is shorter than the original string by:
A. four charscorrect
B. three chars
C. one char
D. two chars
عرض الإجابة
اجابة صحيحة: A
السؤال #22
What is the expected output of the following snippet?
A. 3correct
B. 1
C. 2
D. the code is erroneous
عرض الإجابة
اجابة صحيحة: A
السؤال #23
An operator able to perform bitwise shifts is coded as (select two answers)
A. - -correct
B. ++
C. <
D. >>correct
عرض الإجابة
اجابة صحيحة: ACD
السؤال #24
Which of the following literals reflect the value given as 34.23? (Select Two answers)
A.
B. 3423e-2
C.
D. 3423e2
عرض الإجابة
اجابة صحيحة: AB
السؤال #25
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
السؤال #26
Assuming that String is six or more letters long, the following slice String [1:-2] is shorter than the original string by:
A. four chars
B. three charscorrect
C. one char
D. two chars
عرض الإجابة
اجابة صحيحة: B
السؤال #27
What is the expected output of the following code?
A. abcef
B. The program will cause a runtime exception errorcorrect
C. acdef
D. abdef
عرض الإجابة
اجابة صحيحة: B
السؤال #28
The following expression - is:
A. equal to 1
B. invalid
C. equal to 2
D. equal to -1
عرض الإجابة
اجابة صحيحة: D
السؤال #29
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
السؤال #30
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (Select 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

View The Updated Python Exam Questions

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

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

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

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

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