Win IT Exam with Last Dumps 2024


Python PCAP Exam

Page 6/15
Viewing Questions 51 60 out of 146 Questions
40.00%

Question 51
What is the expected output of the following snippet?
Image PCAP_51Q.png related to the Python PCAP Exam
A. *- **-**-**-*
B. *-**-**-**-**-**-**-**-*
C. *-*
D. *-**-*

Question 52
Which of the listed actions can be applied to the following tuple? (Choose two.)
tup = ()
A. tup [:]
B. tup.append (0)
C. tup [0]
D. del tup

Question 53
Executing the following snippet - will cause the dct:
Image PCAP_53Q.png related to the Python PCAP Exam
A. to hold two keys named 'pi' linked to 3.14 and 3.1415 respectively
B. to hold two key named 'pi' linked to 3.14 and 3.1415
C. to hold one key named 'pi' linked to 3.1415
D. to hold two keys named 'pi' linked to 3.1415

Question 54
How many elements will the list1 list contain after execution of the following snippet?
Image PCAP_54Q.png related to the Python PCAP Exam
A. two
B. zero
C. one
D. three

Question 55
Which of the equations are True? (Choose two.)
A. chr (ord (x)) = = x
B. ord (ord (x)) = = x
C. chr (chr (x)) = = x
D. ord (chr (x)) = = x


Question 56
If you want to transform a string into a list of words, what invocation would you use? (Choose two.)
Expected output:
The, Catcher, in, the Rye,
Code:
Image PCAP_56Q.png related to the Python PCAP Exam
A. s.split()
B. split(s,'')
C. s.split('')
D. split(s)

Question 57
Assuming that 1 -is a four-element list is there any difference between these two statements?
Image PCAP_57Q.png related to the Python PCAP Exam
A. yes, there is, the first line empties the list, the second line deletes the list as a whole
B. yes, there is, the first line deletes the list as a whole, the second line just empties the list
C. no, there is no difference
D. yes, there is, the first line deletes the list as a whole, the second line removes all the elements except the first one

Question 58
What should you put instead of XXX to print out the module name?
Image PCAP_58Q.png related to the Python PCAP Exam
A. main
B. _main_
C. __main__
D. ___main___

Question 59
Files with the suffix .pyc contain:
A. Python 4 source code
B. backups
C. temporary data
D. semi-compiled Python code

Question 60
Package source directories/folders can be:
A. format
B. packed as a ZIP file and distributed as one file
C. rebuilt to a flat form and distributed as one directory/folder
D. removed as Python compiles them into an internal portable format