Win IT Exam with Last Dumps 2024


Python PCAP Exam

Page 2/15
Viewing Questions 11 20 out of 146 Questions
13.33%

Question 11
Which of the following literals reflect the value given as 34.23? (Choose two.)
A. .3423e2
B. 3423e-2
C. .3423e-2
D. 3423e2

Question 12
What is the expected output of the following snippet?
Image PCAP_12Q.jpg related to the Python PCAP Exam
A. 3
B. 1
C. 2
D. the code is erroneous

Question 13
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)
Image PCAP_13Q.jpg related to the Python PCAP Exam
A. len(a)==len(b)
B. b[0]+1==a[0]
C. a[0]==b[0]
D. a[0]+1==b[0]

Question 14
Assuming that the following snippet has been successfully executed, which of the equations are False? (Choose two.)
Image PCAP_14Q.jpg related to the Python PCAP Exam
A. len(a)== len (b)
B. a [0]-1 ==b [0]
C. a [0]== b [0]
D. b [0] - 1 ==a [0]

Question 15
Which of the following statements are true? (Choose two.)
A. Python strings are actually lists
B. Python strings can be concatenated
C. Python strings can be sliced like lists
D. Python strings are mutable


Question 16
Which of the following sentences are true? (Choose two.)
A. Lists may not be stored inside tuples
B. Tuples may be stored inside lists
C. Tuples may not be stored inside tuples
D. Lists may be stored inside lists

Question 17
Assuming that String is six or more letters long, the following slice (string[1:-2]) is shorter than the original string by:
A. four chars
B. three chars
C. one char
D. two chars

Question 18
What is the expected output of the following snippet?
Image PCAP_18Q.jpg related to the Python PCAP Exam
A. 1
B. 4
C. 2
D. 3

Question 19
What is the expected output of the following snippet?
Image PCAP_19Q.jpg related to the Python PCAP Exam
A. abc
B. The code will cause a runtime exception
C. ABC
D. 123

Question 20
How many elements will the list2 list contain after execution of the following snippet?
Image PCAP_20Q.png related to the Python PCAP Exam
A. zero
B. five
C. seven
D. three