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

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

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

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

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

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

السؤال #1
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)
A. Aclass Class_4 (D, A) : pass
B. Bclass Class_1(C,D): pass
C. Cclass Class_3(A,C): pass
D. Dclass Class_2(B,D): pass
عرض الإجابة
اجابة صحيحة: AB
السؤال #2
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
عرض الإجابة
اجابة صحيحة: BD
السؤال #3
If you need a function that does nothing, what would you use instead of XXX? (Select two answers)
A. passcorrect
B. return
C. exit
D. Nonecorrect
عرض الإجابة
اجابة صحيحة: AD
السؤال #4
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 () == 4correct
عرض الإجابة
اجابة صحيحة: ABD
السؤال #5
Files with the suffix .pyc contain:
A. Python 4 source code
B. backups
C. temporary data
D. semi-compiled Python codecorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #6
You are going to read 16 bytes from a binary file into a bytearray called data . Which lines would you use?
A. data = bytearray (16) bf
B. data = binfile
C. bf
D. data = bytearray (binfile
عرض الإجابة
اجابة صحيحة: D
السؤال #7
Which of the following words can be used as a variable name? (Select two valid names)
A. forcorrect
B. True
C. truecorrect
D. Forcorrect
عرض الإجابة
اجابة صحيحة: ACD
السؤال #8
Which of the following lambda function definitions are correct? (Select two answers)
A. lambda X: Nonecorrect
B. lambda: 3,1415correct
C. lambda x: def fun(x): return x
D. lambda lambda: lambda * lambda
عرض الإجابة
اجابة صحيحة: AB
السؤال #9
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
السؤال #10
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
السؤال #11
How many elements will the list1 list contain after execution of the following snippet?
A. two
B. zero
C. one
D. three
عرض الإجابة
اجابة صحيحة: A
السؤال #12
How many lines does the following snippet output?
A. threecorrect
B. one
C. two
D. four
عرض الإجابة
اجابة صحيحة: A
السؤال #13
Which of the following invocations are valid? (Select two answers)
A. rfind("python","r")
B. sorted("python")correct
C. "python"
D. "python"
عرض الإجابة
اجابة صحيحة: BD
السؤال #14
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
السؤال #15
Executing the following snippet
A. to hold two keys named ‘pi’ linked to 3
B. to hold two key named ‘pi’ linked to 3
C. to hold one key named ‘pi’ linked to 3
D. to hold two keys named ‘pi’ linked to 3
عرض الإجابة
اجابة صحيحة: C
السؤال #16
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
A. 'var' in Object
B. 'prop' in Class
C. len(Object
D. 'var1 in Class, dict
عرض الإجابة
اجابة صحيحة: AC
السؤال #17
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 functioncorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #18
Which of the following statements are true? (Select two answers)
A. e is an escape sequence used to mark the end of lines
B. ASCII is synonymous with UTF-8correct
C. II in ASCII stands for Information Interchangecorrect
D. a code point is a number assigned to a given character
عرض الإجابة
اجابة صحيحة: BC
السؤال #19
The following expression is:
A. equal to 1correct
B. invalid
C. equal to 2
D. equal to -1correct
عرض الإجابة
اجابة صحيحة: AD
السؤال #20
Is it possible to safely check if a class object has a certain attribute0
A. yes, by using the hasattr attribute
B. yes
C. yes, by using the hasattr () function
D. no, it is not possible
عرض الإجابة
اجابة صحيحة: B
السؤال #21
What can you deduce from the following statement?(Select two answers) str = open('file.txt', "rt")
A. str is a string read in from the file named file
B. a new line character translation will be performed during the reads
C. if file
D. the opened file cannot be written with the use of the str variable
عرض الإجابة
اجابة صحيحة: BD
السؤال #22
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
السؤال #23
What is the expected behavior of the following code?
A. it outputs [1, 3]correct
B. the code is erroneous and it will not execute
C. it outputs [3, 1]
D. it outputs [4, 2, 0]
عرض الإجابة
اجابة صحيحة: A
السؤال #24
What is the expected output of the following snippet?
A. abc
B. The code will cause a runtime exceptioncorrect
C. ABC
D. 123
عرض الإجابة
اجابة صحيحة: B
السؤال #25
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)
A. class Class_4 (D, A) : passcorrect
B. class Class_1(C,D): passcorrect
C. class Class_3(A,C): pass
D. class Class_2(B,D): pass
عرض الإجابة
اجابة صحيحة: AB
السؤال #26
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
السؤال #27
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 < 1correct
عرض الإجابة
اجابة صحيحة: CD
السؤال #28
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
السؤال #29
What is the expected output of the following code?
A. 21correct
B. 2
C. 3
D. 12
عرض الإجابة
اجابة صحيحة: A
السؤال #30
Select the true statements: (Select all that apply)
A. The class keyword marks the beginning of the class definition
B. An object cannot contain any references to other objects
C. A class may define an object
D. A constructor is used to instantiate an object
E. An object variable is a variable that is stored separately in every object
عرض الإجابة
اجابة صحيحة: ACD

View The Updated Python Exam Questions

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

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

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

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

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