[Nov-2021] Free PCAP-31-03 Exam Questions PCAP-31-03 Actual Free Exam Questions
Verified PCAP-31-03 dumps and 120 unique questions
PCAP - Certified Associate in Python Programming (PCAP-31-03) Exam Certified Professional salary
The estimated average salary of PCAP - Certified Associate in Python Programming (PCAP-31-03) professional is listed below:
- India: 20,40,000 INR
- Europe: 70,000 EURO
- United States: 120,000 USD
- England: 70,600 POUNDS
NEW QUESTION 52
What is the expected behavior of the following snippet?
It will:
- A. print 1
- B. print 0 , [1]
- C. cause a runtime exception
- D. print [1J
Answer: C
Explanation:
NEW QUESTION 53
If you want to access an exception object's components and store them in an object called e, you have to use the following form of exception statement
- A. except Exception as e:
- B. except Exception(e):
- C. such an action is not possible in Python
- D. except e=Exception:
Answer: A
NEW QUESTION 54
Files with the suffix .pyc contain:
- A. semi-compiled Python code
- B. Python 4 source code
- C. backups
- D. temporary data
Answer: A
NEW QUESTION 55
What is true about Object-Oriented Programming in Python? (Select two answers)
- A. the same class can be used many times to build a number of objects
- B. if a real-life object can be described with a set of adjectives, they may reflect a Python object method
- C. each object of the same class can have a different set of methods
- D. a subclass is usually more specialized than its superclass
Answer: A,D
NEW QUESTION 56
What is the expected behavior of the following code?
- A. it outputs 3
- B. it outputs 1
- C. it outputs 2
- D. the code is erroneous and it will not execute
Answer: C
NEW QUESTION 57
What is the expected output of the following code?
- A. 0
- B. an exception is raised
- C. 1
- D. 2
Answer: B
NEW QUESTION 58
What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?
- A. an errno value corresponding to file not found
- B. 0
- C. 1
- D. 2
Answer: C
NEW QUESTION 59
What is the expected behavior of the following code?
- A. it outputs list assignment index out of range
- B. it outputs error
- C. the code is erroneous and it will not execute
- D. it outputs <class ' IndexError' >
Answer: A
NEW QUESTION 60
What is the expected behavior of the following code?
It will:
- A. cause a runtime exception
- B. print <generator object f at (some hex digits)>
- C. print 4321
- D. print 1234
Answer: B
Explanation:
NEW QUESTION 61
A compiler is a program designed to (select two answers)
- A. translate the source code into machine code
- B. check the source code in order to see if its correct
- C. rearrange the source code to make it clearer
- D. execute the source code
Answer: A,B
Explanation:
https://www.thoughtco.com/what-is-a-compiler-958322
NEW QUESTION 62
The first parameter of each method:
- A. is set to a unique random value
- B. is set by the first argument's value
- C. holds a reference to the currentlv processed object
- D. is always set to None
Answer: C
Explanation:
The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called
NEW QUESTION 63
Which of the following statements are true? (Select two answers)
- A. \e is an escape sequence used to mark the end of lines
- B. II in ASCII stands for Information Interchange
- C. ASCII is synonymous with UTF-8
- D. a code point is a number assigned to a given character
Answer: B,C
NEW QUESTION 64
What will the value of the i variable be when the following loop finishes its execution?
- A. 0
- B. 1
- C. 2
- D. the variable becomes unavailable
Answer: C
Explanation:
Pass only means there are no statements to execute it does not means the variable is unavailable. Try a Print statement Print(i) after the For Loop and there is your result.
NEW QUESTION 65
Which of the following expression evaluate to True? (Select two answers)
- A. 't' . upper ( ) in 'Thames'
- B. 'in' in 'in'
- C. 'in not' in 'not'
- D. 'in' in 'Thames'
Answer: A,B
NEW QUESTION 66
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
- A. except (ex1, Ex2):
- B. except Ex1, Ex2:
- C. except Ex1+Ex2:
- D. except Ex1 Ex2:
Answer: C
NEW QUESTION 67
What is the expected output of the following snippet?
- A. 0
- B. the code is erroneous
- C. 1
- D. 2
Answer: A
Explanation:
NEW QUESTION 68
What is the expected behavior of the following code?
- A. it outputs 2
- B. it outputs 0
- C. it outputs 1
- D. it raises an exception
Answer: D
NEW QUESTION 69
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers)
- A. b( ) > 2
- B. a is not None
- C. a is b
- D. a() > 2
Answer: A,B,D
NEW QUESTION 70
Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b
- A. fun(b=1, 0)
- B. fun (1)
- C. fun(b=1)
- D. fun (a=0)
Answer: B,D
NEW QUESTION 71
What is the expected behavior of the following code?
- A. it outputs [4, 2]
- B. it outputs [0, 1, 2, 3, 4]
- C. it outputs [2, 4]
- D. the code is erroneus and it will not execute
Answer: A
NEW QUESTION 72
What is the expected behavior of the following code?
- A. it outputs nothing
- B. it raises an exception
- C. it outputs False
- D. it outputs True
Answer: D
NEW QUESTION 73
......
PCAP - Certified Associate in Python Programming (PCAP-31-03) Certification Path
The Certified Associate in Python Programming Certification includes only one PCAP-31-03 exam. There are no official prerequisites for the exam, but the applicants are recommended to have little prior knowledge of any programming language, should have very basic knowledge of Mathematics, and have attempted the PCAP-31-03 practice tests.
Latest 100% Passing Guarantee - Brilliant PCAP-31-03 Exam Questions PDF: https://www.dumpstillvalid.com/PCAP-31-03-prep4sure-review.html
PCAP-31-03 Dumps for Pass Guaranteed - Pass PCAP-31-03 Exam: https://drive.google.com/open?id=10dBiv-_Kv0kvAh8JB_zu-fp8PjC4epvD
