Win IT Exam with Last Dumps 2024


Python PCAP Exam

Page 9/15
Viewing Questions 81 90 out of 146 Questions
60.00%

Question 81
What is true about Python packages? (Choose two.)
A. a package is a single file whose name ends with the pa extension
B. a package is a group of related modules
C. the __name__ variable always contains the name of a package
D. the pyc extension is used to mark semi-compiled Python packages

Question 82
What is the expected behavior of the following code?
Image PCAP_82Q.png related to the Python PCAP Exam
A. it outputs 3
B. it outputs 1
C. the code is erroneous and it will not execute
D. it outputs 2

Question 83
What is the expected behavior of the following code?
Image PCAP_83Q.png related to the Python PCAP Exam
A. it outputs 3
B. the code is erroneous and it will not execute
C. it outputs 1
D. it outputs 2

Question 84
Which of the following snippets will execute without raising any unhandled exceptions? (Choose two.)
A.
Image PCAP_84QA.png related to the Python PCAP Exam
B.
Image PCAP_84QB.png related to the Python PCAP Exam
C.
Image PCAP_84QC.png related to the Python PCAP Exam
D.
Image PCAP_84QD.png related to the Python PCAP Exam

Question 85
What is the expected behavior of the following code?
Image PCAP_85Q.png related to the Python PCAP Exam
A. it outputs error
B. it outputs
C. it outputs list assignment index out of range
D. the code is erroneous and it will not execute


Question 86
What is true about the following snippet? (Choose two.)
Image PCAP_86Q.png related to the Python PCAP Exam
A. the string it's nice to see you will be seen
B. the string I feel fine will be seen
C. the code will raise an unhandled exception
D. the string what a pity will be seen

Question 87
Which of the following expressions evaluate to True? (Choose two.)
A. ord("Z")-ord("z")==ord("0")
B. chr(ord('A')+1)=='B'
C. len('\'')==1
D. len("""""")==0

Question 88
Which of the following invocations are valid? (Choose two.)
A. "python".sort()
B. sorted("python")
C. rfind("python","r")
D. "python".index("th")

Question 89
What is the expected behavior of the following code?
Image PCAP_89Q.png related to the Python PCAP Exam
A. it raises an exception
B. it outputs 0
C. it outputs 3
D. it outputs 'None'

Question 90
Which of the following statements are true? (Choose two.)
A. II in ACII stands for Information Interchange
B. a code point is a number assigned to a given character
C. ACII is synonymous with UTF-8
D. \e is an escape sequence used to mark the end of lines