[Jan-2022] PCAP-31-03 Exam Dumps Pass with Updated 2022 Certified Associate in Python Programming
Free PCAP-31-03 Exam Dumps to Pass Exam Easily
Python Institute PCAP-31-03 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
NEW QUESTION 26
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
- A. len(Object.__diet__) == 1
- B. 'var1 in Class, diet
- C. 'var' in Object.__diet__
- D. 'prop' in Class.__diet
Answer: A
NEW QUESTION 27
What is true about Python packages? (Select two answers)
- A. a package can be stored as a tree of sub-directories/sub-folders
- B. the__name__variable content determines the way in which the module was run
- C. __pycache__is the name of a built-in variable
- D. hashbang is the name of a built-in Python function
Answer: D
NEW QUESTION 28
What is the expected output of the following snippet?
- A. True lower
- B. True upper
- C. False upper
- D. False lower
Answer: A
NEW QUESTION 29
What is the expected behavior of the following code?
- A. it outputs 3
- B. it raises an exception
- C. it outputs 6
- D. it outputs 1
Answer: C
NEW QUESTION 30
Which of the equations are True? (Select two answers)
- A. chr (chr (x)) = = x
- B. ord (chr (x)) = = x
- C. ord (ord (x)) = = x
- D. chr (ord (x)) = = x
Answer: B,D
Explanation:
https://docs.python.org/3/library/functions.html#chr
https://docs.python.org/3/library/functions.html#ord
NEW QUESTION 31
Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b
- A. fun (a=0)
- B. fun(b=1)
- C. fun (1)
- D. fun(b=1, 0)
Answer: A,C
NEW QUESTION 32
How many elements will the list1 list contain after execution of the following snippet?
- A. three
- B. zero
- C. one
- D. two
Answer: D
NEW QUESTION 33
Files with the suffix .pyc contain:
- A. Python 4 source code
- B. backups
- C. temporary data
- D. semi-compiled Python code
Answer: D
NEW QUESTION 34
Which of the following invocations are valid? (Select two answers)
- A. sorted("python")
- B. rfind("python","r")
- C. "python".sort ()
- D. "python".index("th")
Answer: A,D
NEW QUESTION 35
What is the expected behavior of the following code?
It will:
- A. cause a runtime exception
- B. print an empty line
- C. prints 3
- D. print 0
Answer: A
NEW QUESTION 36
The following class hierarchy is given. What is the expected out of the code?
- A. BC
- B. AA
- C. CC
- D. BB
Answer: A
NEW QUESTION 37
What is the expected output of the following code?
- A. 0
- B. an exception is raised
- C. 1
- D. 2
Answer: B
NEW QUESTION 38
What is the expected behavior of the following code?
- A. it outputs 3
- B. it raises an exception
- C. it outputs 6
- D. it outputs 1
Answer: C
NEW QUESTION 39
What is the expected behavior of the following code?
- A. it outputs 2
- B. it outputs 3
- C. it outputs 1
- D. the code is erroneous and it will not execute
Answer: B
NEW QUESTION 40
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)
- A. a ! = b
- B. b ( ) == 4
- C. a is not None
- D. a ( ) == 4
Answer: A,C
NEW QUESTION 41
If you want to transform a string into a list of words, what invocation would you use? (Select two answers) Expected output:
- A. s.split (",")
- B. split (s)
- C. s.split ()
- D. split (s, ",")
Answer: A,C
NEW QUESTION 42
Which of the following words can be used as a variable name? (Select two valid names)
- A. For
- B. True
- C. true
- D. for
Answer: A,C
NEW QUESTION 43
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)
- A. class Class_1(C,D): pass
- B. class Class_3(A,C): pass
- C. class Class_4 (D, A) : pass
- D. class Class_2(B,D): pass
Answer: A,C
NEW QUESTION 44
......
PCAP-31-03 Exam Dumps, PCAP-31-03 Practice Test Questions: https://www.suretorrent.com/PCAP-31-03-exam-guide-torrent.html
Free PCAP-31-03 Study Guides Exam Questions & Answer: https://drive.google.com/open?id=1jtswlKKHgrGPx6L0Ab4eRxrBsbES8-J9