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

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

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

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

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

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

السؤال #1
How many elements will the list2 list contain after execution of the following snippet?
A. zerocorrect
B. five
C. sevencorrect
D. three
عرض الإجابة
اجابة صحيحة: AC
السؤال #2
How many elements will the list2 list contain after execution of the following snippet? list1 = [False for i in range (1, 10) ] list2 = list1 [-1:1:-1]
A. zero
B. five
C. sevencorrect
D. three
عرض الإجابة
اجابة صحيحة: C
السؤال #3
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
السؤال #4
What is the expected behavior of the following code?
A. it raises an exception
B. it outputs Truecorrect
C. it outputs False
D. it outputs nothing
عرض الإجابة
اجابة صحيحة: B
السؤال #5
What is the expected behavior of the following code?
A. it outputs 6correct
B. it outputs 1
C. it outputs 3
D. it raises an exception
عرض الإجابة
اجابة صحيحة: A
السؤال #6
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
السؤال #7
What is the expected behavior of the following snippet? It will:
A. cause a runtime exceptioncorrect
B. print 1
C. print 0, [1]
D. print [1]
عرض الإجابة
اجابة صحيحة: A
السؤال #8
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers) import random v1 = random. random() v2 = random. random()
A. len(random
B. v1 == v2
C. random
D. v1 < 1
عرض الإجابة
اجابة صحيحة: CD
السؤال #9
A method for passing the arguments used by the following snippet is called:
A. sequential
B. named
C. positionalcorrect
D. keyword
عرض الإجابة
اجابة صحيحة: C
السؤال #10
The following expression 1+-2 is:
A. equal to 1
B. invalid
C. equal to 2
D. equal to -1correct
عرض الإجابة
اجابة صحيحة: D
السؤال #11
What will the value of the i variable be when the following loop finishes its execution? for i in range(10): pass
A. 10
B. the variable becomes unavailable
C. 11
D. 9
عرض الإجابة
اجابة صحيحة: D
السؤال #12
There is a stream named s open for writing. What option will vou select to write a line to the stream''
A. s
B. write(s, "Hello")
C. s
D. s
عرض الإجابة
اجابة صحيحة: A
السؤال #13
The__bases__property contains:
A. base class locations (addr)
B. base class objects (class)correct
C. base class names (str)
D. base class ids (int)
عرض الإجابة
اجابة صحيحة: B
السؤال #14
What will the value of the i variable be when the following loop finishes its execution?
A. 10correct
B. the variable becomes unavailable
C. 11
D. 9correct
عرض الإجابة
اجابة صحيحة: AD
السؤال #15
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
السؤال #16
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers) string = 'python' [::2] string = string[-1] + string[-2]
A. string[0] == string[-1]
B. string is None
C. len (string] == 3
D. string[0] == 'o'correct
عرض الإجابة
اجابة صحيحة: D
السؤال #17
Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers) Expected output: 1 2 3 Code:
A. c, b, a = b, a, ccorrect
B. c, b, a = a, c, b
C. a, b, c = c, a, bcorrect
D. a, b, c = a, b, c
عرض الإجابة
اجابة صحيحة: AC
السؤال #18
A file name like this one below says mat: (select three answers) services. cpython-36.pyc
A. the interpreter used to generate the file is version 3
B. it has been produced by CPythoncorrect
C. it is the 36th version of the file
D. the file comes from the services
عرض الإجابة
اجابة صحيحة: ABD
السؤال #19
Which of the following lambda definitions are correct? (Select two answers)
A. lanbda x, y; return x\y - x%ycorrect
B. lambda x, y: x//y - x%ycorrect
C. lambda (x, y = x\y x%y
D. lambda x, y: (x, y)correct
عرض الإجابة
اجابة صحيحة: ABD
السؤال #20
What is the expected behavior of the following code? It will:
A. print 0
B. cause a runtime exceptioncorrect
C. prints 3
D. print an empty line
عرض الإجابة
اجابة صحيحة: B
السؤال #21
And operator able to perform bitwise shifts is coded as (Choose two.)
A. --
B. ++
C. <<
D. >>
عرض الإجابة
اجابة صحيحة: CD
السؤال #22
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers)
A. a is bcorrect
B. b( ) > 2correct
C. a() > 2correct
D. a is not Nonecorrect
عرض الإجابة
اجابة صحيحة: ABCD
السؤال #23
The first parameter of each method:
A. holds a reference to the currently processed object
B. is always set to None
C. is set to a unique random value
D. is set by the first argument's value
عرض الإجابة
اجابة صحيحة: A
السؤال #24
Python strings can be “glued” together using the operator:
A.
B. &
C. _
D. +correct
عرض الإجابة
اجابة صحيحة: D
السؤال #25
What is the expected behavior of the following code?
A. it outputs 2
B. the code is erroneous and it will not execute
C. it outputs 1
D. it outputs 3correct
عرض الإجابة
اجابة صحيحة: D
السؤال #26
Select the valid fun () invocations: (Select two answers)
A. fun (b=1)correct
B. fun (a=0)correct
C. fun (b=1, 0)
D. fun (1)correct
عرض الإجابة
اجابة صحيحة: ABD
السؤال #27
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
السؤال #28
An operator able to perform bitwise shifts is coded as (select two answers)
A. A- -
B. B++
C. C<<
D. D>>
عرض الإجابة
اجابة صحيحة: CD
السؤال #29
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
السؤال #30
What is the expected behavior of the following code? x = 8 ** (1/3) y = 2. if x < 2.3 else 3. print(y)
A. it outputs 2
B. it outputs 2
C. the code is erroneus and it will not execute
D. it outputs 3
عرض الإجابة
اجابة صحيحة: A

View The Updated Python Exam Questions

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

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

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

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

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