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

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

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

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

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

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

السؤال #1
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. Aprint (get(self))
B. Bprint (self
C. Cprint (get())
D. Dprint (self
عرض الإجابة
اجابة صحيحة: B
السؤال #2
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
السؤال #3
What is the expected output of the following code if there is no file named non existing_file inside the working directory?
A. 2 2
B. 1 3correct
C. 1 2 3
D. 2 2 3
عرض الإجابة
اجابة صحيحة: B
السؤال #4
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] fe- 1 == a[0]
C. a[0] = b[0]correct
D. a[0] + 1 == b[0]
عرض الإجابة
اجابة صحيحة: AC
السؤال #5
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
السؤال #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 code? It will:
A. print 4321correct
B. print correct
C. cause a runtime exception
D. print 1234
عرض الإجابة
اجابة صحيحة: AB
السؤال #8
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 variable
عرض الإجابة
اجابة صحيحة: A
السؤال #9
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
السؤال #10
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
السؤال #11
What is the expected output of the following snippet?
A. 3correct
B. 1
C. 2
D. the code is erroneous
عرض الإجابة
اجابة صحيحة: A
السؤال #12
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
السؤال #13
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
السؤال #14
What is the expected output of the following snippet?
A. 1
B. 4
C. 2correct
D. 3
عرض الإجابة
اجابة صحيحة: C
السؤال #15
A method for passing the arguments used by the following snippet is called:
A. sequential
B. named
C. positionalcorrect
D. keyword
عرض الإجابة
اجابة صحيحة: C
السؤال #16
Which of the following expression evaluate to True? (Select two answers)
A. 'in not' in 'not'correct
B. 'in' in 'Thames'
C. 't'
D. 'in' in 'in'correct
عرض الإجابة
اجابة صحيحة: ACD
السؤال #17
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
السؤال #18
Which of the following statement are true? (Select two answers)
A. closing an open file is performed by the closefile ( ) functioncorrect
B. the second open ( ) argument describes the open mode and defaults to ‘w’
C. if open ( ) ‘s second argument is ‘r’ the file must exist or open will failcorrect
D. if open ( )’s second argument is ‘w’ and the invocation succeeds, the previous file’s content is lostcorrect
عرض الإجابة
اجابة صحيحة: ACD
السؤال #19
A Python module named pymod.py contains a variable named pyvar. Which of the following snippets will let you access the variable? (Select two answers)
A. import pyvar from pymod pyvar = 1
B. from pymod import pyvar = 1
C. from pymod import pyvar pyvar ()
D. import pymod pymod
عرض الإجابة
اجابة صحيحة: AD
السؤال #20
Which of the following invocations are valid? (Select two answers)
A. sorted ("python'')correct
B. "python"
C. sort" ("python")
D. "python' ,find (")correct
عرض الإجابة
اجابة صحيحة: AD

View The Updated Python Exam Questions

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

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

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

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

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