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

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

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

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

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

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

السؤال #1
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
السؤال #2
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. >>
D. <<
عرض الإجابة
اجابة صحيحة: C
السؤال #3
What is true about Object-Oriented Programming in Python? (Select two answers)
A. encapsulation allows you to protect some data from uncontrolled accesscorrect
B. the arrows on a class diagram are always directed from a superclass towards itssubclass
C. inheritance is the relation between a superclass and a subclasscorrect
D. an object is a recipe for a class
عرض الإجابة
اجابة صحيحة: AC
السؤال #4
What is the expected output of the following code if existing_file is the name of a file located inside the working directory?
A. 1 2
B. 1 2 3
C. 1 3correct
D. 2 3
عرض الإجابة
اجابة صحيحة: C
السؤال #5
The simplest possible class definition in Python can be expressed as:
A. class X:correct
B. class X: pass
C. class X: return
D. class X: {}
عرض الإجابة
اجابة صحيحة: A
السؤال #6
Which of the following expression evaluate to True? (Select two answers)
A. len(''?) == 1
B. len("""""") == o
C. chr(ordCA') + 1) == 'B'correct
D. ord("Z") - ord("z") -- ord("0")
عرض الإجابة
اجابة صحيحة: C
السؤال #7
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'
B. _name == _main_'correct
C. Class
D. _module_ == 'ClassA'correct
E. len(Class
F. __bases__) == 1
عرض الإجابة
اجابة صحيحة: BD
السؤال #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
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
A. except Ex1 Ex2:
B. except (ex1, Ex2):correct
C. except Ex1, Ex2:
D. except Ex1+Ex2:
عرض الإجابة
اجابة صحيحة: B
السؤال #10
Which of the listed actions can be applied to the following tuple? (Select two answers)
A. tup [:]correct
B. tup
C. tup [0]
D. del tupcorrect
عرض الإجابة
اجابة صحيحة: AD
السؤال #11
A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:
A. lambda (x, y) = x ** y
B. lambda (x, y): x ** y
C. def lambda (x, y): return x ** y
D. lambda x, y: x ** ycorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #12
Which of the following expression evaluate to True? (Select two answers)
A. 'in not' in 'not'
B. 'in' in 'Thames'
C. 't'
D. 'in' in 'in'correct
عرض الإجابة
اجابة صحيحة: CD
السؤال #13
Which one of the platform module functions should be used to determine the underlying platform name?
A. platform
B. platform
C. platform
D. platform
عرض الإجابة
اجابة صحيحة: B
السؤال #14
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
السؤال #15
Which of the following statements are true? (Select two answers)
A. open () is a function which returns an int that represents a physical file handlecorrect
B. the second open () argument is optionalcorrect
C. instd, outstd, errstd are the names of pre-opened streams
D. if invoking open () fails, the value None is returned
عرض الإجابة
اجابة صحيحة: AB
السؤال #16
A compiler is a program designed to (Select two answers)
A. rearrange the source code to make it clearer
B. check the source code in order to see of it’s correct
C. execute the source code
D. translate the source code into machine code
عرض الإجابة
اجابة صحيحة: BD
السؤال #17
Which of the following words can be used as a variable name? (Select two valid names)
A. for
B. True
C. true
D. For
عرض الإجابة
اجابة صحيحة: CD
السؤال #18
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
السؤال #19
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
السؤال #20
What is a true about python class constructors? (Select two answers)
A. the constructor must have at least one parametercorrect
B. the constructor must return a value other than None
C. the constructor is a method named_init_correct
D. there can the more than one constructor in a Python class
عرض الإجابة
اجابة صحيحة: AC
السؤال #21
What is the expected behavior of the following code? It will:
A. print 0
B. cause a runtime exception
C. prints 3
D. print an empty line
عرض الإجابة
اجابة صحيحة: B
السؤال #22
A property that stores information about a given class's super-classes is named:
A. _upper_
B. _bases_correct
C. _ancestors_
D. _super_
عرض الإجابة
اجابة صحيحة: B
السؤال #23
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
عرض الإجابة
اجابة صحيحة: AD
السؤال #24
A Python module named pymod, py contains a function named pyfun ( ). Which of the following snippets will let you invoke the function? (Select two answers)
A. From pymod import ‘Pymod
B. Import pymodPymod
C. Import pyfun from pymodPyfun ( )
D. From pymod import pyfunPyfun ( )correct
عرض الإجابة
اجابة صحيحة: ABD
السؤال #25
Which of the following expression evaluate to True? (Select two answers) A) B) C) D)
A. Option Acorrect
B. Option B
C. Option Ccorrect
D. Option Dcorrect
عرض الإجابة
اجابة صحيحة: ACD
السؤال #26
What will the value of the i variable be when the following loop finishes its execution?
A. 10correct
B. the variable becomes unavailablecorrect
C. 11
D. 9
عرض الإجابة
اجابة صحيحة: AB
السؤال #27
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 1correct
D. it outputs 3
عرض الإجابة
اجابة صحيحة: C
السؤال #28
What is true about the following snippet? (Select two answers)
A. the code will raise an unhandled exceptioncorrect
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
عرض الإجابة
اجابة صحيحة: ABD
السؤال #29
Python's built-in function named open () tries to open a file and returns:
A. an integer value identifying an opened file
B. an error code (0 means success)
C. a stream objectcorrect
D. always None
عرض الإجابة
اجابة صحيحة: C
السؤال #30
What is the expected behavior of the following snippet? It will:
A. cause a runtime exception on line 02correct
B. cause a runtime exception on line 01
C. cause a runtime exception on line 03
D. print 3correct
عرض الإجابة
اجابة صحيحة: AD

View The Updated Python Exam Questions

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

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

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

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

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