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

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

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

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

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

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

السؤال #1
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
السؤال #2
If you want to access an exception object's components and store them in an object called e, you have to use the following form of exception statement
A. except Exception(e):
B. except e=Exception:
C. except Exception as e:correct
D. such an action is not possible in Python
عرض الإجابة
اجابة صحيحة: C
السؤال #3
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 newlina character translation will be performed during the reads
C. if file
D. the opened file cannot be written with the use of the str variablecorrect
عرض الإجابة
اجابة صحيحة: AD
السؤال #4
Which of the following literals reflect the value given as 3 4. 2 3 (select two answers)
A.
B. 3423e-2correct
C.
D. 3423e2
عرض الإجابة
اجابة صحيحة: AB
السؤال #5
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
السؤال #6
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)
A. len(a) == len (b)correct
B. b [0] +1 ==a [0]
C. a [0] == b [0]correct
D. a [0] + 1 ==b [0]
عرض الإجابة
اجابة صحيحة: AC
السؤال #7
If you want to access an exception object's components and store them in an object called e, you have to use the following form of exception statement
A. except Exception(e):
B. except e=Exception:
C. except Exception as e:correct
D. such an action is not possible in Python
عرض الإجابة
اجابة صحيحة: C
السؤال #8
What would you use instead of XXX if you want to check whether a certain ‘ key' exists in a dictionary called diet? (Select two answers) II if XXX: print ("Key exists")
A. 'key' in dietcorrect
B. diet['key'] != Nonecorrect
C. diet
D. 'key' in diet
عرض الإجابة
اجابة صحيحة: ABD
السؤال #9
What is the expected behavior of the following code?
A. it outputs 'None'
B. it outputs 3correct
C. it raises an exception
D. it outputs 0
عرض الإجابة
اجابة صحيحة: B
السؤال #10
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
السؤال #11
Which of the following invocations are valid? (Select two answers)
A. sorted ("python'')correct
B. "python"
C. sort" ("python")
D. "python' ,find (")correct
عرض الإجابة
اجابة صحيحة: AD
السؤال #12
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
السؤال #13
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
السؤال #14
What is the expected output of the following snippet?
A. the code is erroneouscorrect
B. 3
C. 7
D. 15
عرض الإجابة
اجابة صحيحة: A
السؤال #15
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):
C. except Ex1, Ex2:
D. except Ex1+Ex2:correct
عرض الإجابة
اجابة صحيحة: D
السؤال #16
What is the expected output of the following code?
A. abcefcorrect
B. The program will cause a runtime exception/errorcorrect
C. acdef
D. abdef
عرض الإجابة
اجابة صحيحة: AB
السؤال #17
The following class definition is given. We want the show () method to invoke the get () method, and then output the value the get () method returns. Which of the invocations should be used instead of XXX?
A. print (get(self))
B. print (self
C. print (get())
D. print (self
عرض الإجابة
اجابة صحيحة: B
السؤال #18
What is the expected output of the following code?
A. 3correct
B. 5
C. 4
D. an exception is raised
عرض الإجابة
اجابة صحيحة: A
السؤال #19
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):
C. except Ex1, Ex2:
D. except Ex1+Ex2:
عرض الإجابة
اجابة صحيحة: D
السؤال #20
How many elements will the list2 list contain after execution of the following snippet? List1= [False fori in range(1,10)] list2 = list1[-1:1:-1]
A. zero
B. five
C. seven
D. three
عرض الإجابة
اجابة صحيحة: C
السؤال #21
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
السؤال #22
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 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 the as keywordcorrect
عرض الإجابة
اجابة صحيحة: D
السؤال #23
A compiler is a program designed to (Select two answers)
A. rearrange the source code to make it clearercorrect
B. check the source code in order to see of it’s correctcorrect
C. execute the source codecorrect
D. translate the source code into machine code
عرض الإجابة
اجابة صحيحة: ABC
السؤال #24
What will be the value of the i variable when the while e loop finishes its execution?
A. 1
B. 0
C. 2
D. the variable becomes unavailable
عرض الإجابة
اجابة صحيحة: A
السؤال #25
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
السؤال #26
A Python package named pypack includes a module named pymod.py which contains a function named pyfun(). Which of the following snippets will let you invoke the function? (Choose two.)
A. from pypack
B. import pypack pymod
C. from pypack import * pyfun()
D. import pypack import pypack
عرض الإجابة
اجابة صحيحة: AD
السؤال #27
What is the expected behavior of the following code?
A. it outputs 2
B. the code is erroneous and it will not executecorrect
C. it outputs 3
D. it outputs :
عرض الإجابة
اجابة صحيحة: B
السؤال #28
How many elements will the list1 list contain after execution of the following snippet?
A. twocorrect
B. zero
C. one
D. three
عرض الإجابة
اجابة صحيحة: A
السؤال #29
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
السؤال #30
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

View The Updated Python Exam Questions

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

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

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

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

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