100% Updated Python Institute PCAP-31-03 Enterprise PDF Dumps
Use Valid Exam PCAP-31-03 by Free4Torrent Books For Free Website
How much PCAP - Certified Associate in Python Programming (PCAP-31-03) Exam Cost
The full fee for the PCAP - Certified Associate in Python Programming (PCAP-31-03) exam is USD 295. This fee includes a free exam retake as well. However, students can be eligible for discounts. Students who take the online learning course from Python Institute will be eligible for a 50% discount, making the exam fee USD 147.5. Students who take the instructor-led course from Cisco Networking Academy will be eligible for a 51% discount, making the exam fee USD 144.55. For more information related to exam price, please visit Python Institute Exam Fees
NEW QUESTION 35
Assuming that the code below has been placed inside a file named code.py and executed successfully, which of the following expressions evaluate to True? (Select two answers)
- A. str(Object) == 'Object'
- B. len(ClassB.__bases__) == 1
- C. ClassA. _module_ == 'ClassA'
- D. _name == _main_'
Answer: B
NEW QUESTION 36
Which of the following lambda function definitions are correct? (Select two answers)
- A. lambda lambda: lambda * lambda
- B. lambda x : def fun(x): return x
- C. lambda : 3,1415
- D. lambda X : None
Answer: C,D
NEW QUESTION 37
Which of the following expression evaluate to True? (Select two answers)
- A. 'in' in 'in'
- B. 't' . upper ( ) in 'Thames'
- C. 'in' in 'Thames'
- D. 'in not' in 'not'
Answer: A,B
NEW QUESTION 38
Python strings can be "glued" together using the operator:
- A. _
- B. +
- C. &
- D. .
Answer: B
NEW QUESTION 39
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: B,C
NEW QUESTION 40
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers)
- A. a is b
- B. a() > 2
- C. a is not None
- D. b( ) > 2
Answer: B,C,D
NEW QUESTION 41
Which of the following literals reflect the value given as 3 4. 2 3 (select two answers)
- A. 3423e2
- B. 3423e-2
- C. .3423e2
- D. .3423e-2
Answer: B,C
Explanation:
NEW QUESTION 42
What is the expected behavior of the following snippet?
It will:
- A. cause a runtime exception on line 03
- B. cause a runtime exception on line 01
- C. cause a runtime exception on line 02
- D. print3
Answer: D
Explanation:
NEW QUESTION 43
What is the expected output of the following code?
- A. 0
- B. an exception is raised
- C. 1
- D. 2
Answer: D
NEW QUESTION 44
If you need a function that does nothing, what would you use instead of XXX? (Select two answers) def idler ( ):
XXX
- A. exit
- B. pass
- C. None
- D. return
Answer: B,C
NEW QUESTION 45
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)
- A. a[0] = b[0]
- B. a[0] - 1 == b[0]
- C. len(a) == len(b)
- D. b[0] - 1 == a[0]
Answer: A,D
Explanation:
>>> print(len(a)==len(b))
True
>>> print(a[0]-1==b[0])
True
>>> print(a[0]==b[0])
False
>>> print(b[0]-1 == a[0])
False
NEW QUESTION 46
What is the expected behavior of the following code?
x - 3 % 1
y -1 if x > else 0
print (y)
- A. it outputs 0
- B. it outputs 1
- C. it outputs -1
- D. the code is erroneous and it will not execute
Answer: A
NEW QUESTION 47
What is the expected behavior of the following code?
- A. it outputs False
- B. it raises an exception
- C. it outputs nothing
- D. it outputs True
Answer: D
NEW QUESTION 48
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:
Reference:
https://docs.python.org/3/library/functions.html#ord
NEW QUESTION 49
What is a true about python class constructors? (Select two answers)
- A. there can the more than one constructor in a Python class.
- B. the constructor is a method named_init_
- C. the constructor must have at least one parameter
- D. the constructor must return a value other than None
Answer: B,C
NEW QUESTION 50
A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:
- A. def lambda (x, y): return x ** y
- B. lambda x, y: x ** y
- C. lambda (x, y) = x ** y
- D. lambda (x, y): x ** y
Answer: B
NEW QUESTION 51
Which of the following expressions evaluate to True? (Select two answers)
- A. 'phd' in 'alpha'
- B. 'deb' not in 'abcde' [::-1]
- C. str(1-1) in '0123456789'[:2]
- D. 'True' not in 'False'
Answer: B,D
NEW QUESTION 52
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Choose two.)
- A. isinstance (obj_b,A)
- B. B.VarA == 1
- C. obj_a is obj_aa
- D. A.VarA == 1
Answer: A,C
NEW QUESTION 53
......
Python Institute PCAP-31-03 Official Cert Guide PDF: https://validdumps.free4torrent.com/PCAP-31-03-valid-dumps-torrent.html