[Dec 10, 2021] Lesson Brilliant PDF for the PCAP-31-03 Tests Free Updated Today [Q53-Q74]

Share

[Dec 10, 2021] Lesson Brilliant PDF for the PCAP-31-03 Tests Free Updated Today

Get New 2021 Valid Practice Python Institute PCAP PCAP-31-03 Q&A - Testing Engine


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 53
What is the expected behavior of the following code?

  • A. it outputs False
  • B. it outputs nothing
  • C. it raises an exception
  • D. it outputs True

Answer: D

 

NEW QUESTION 54
What is the expected behavior of the following code?

  • A. it outputs 0
  • B. it outputs 1
  • C. it outputs 2
  • D. it raises an exception

Answer: D

 

NEW QUESTION 55
What is the expected behavior of the following code?

  • A. it outputs 0
  • B. it raises an exception
  • C. it outputs 'None'
  • D. it outputs 3

Answer: A

 

NEW QUESTION 56
Python strings can be "glued" together using the operator:

  • A. +
  • B. _
  • C. .
  • D. &

Answer: A

 

NEW QUESTION 57
Python's built-in function named open () tries to open a file and returns:

  • A. an error code (0 means success)
  • B. always None
  • C. an integer value identifying an opened file
  • D. a stream object

Answer: D

 

NEW QUESTION 58
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers) import random v1 = random. random() v2 = random. random()

  • A. len(random. sample([1,2,3],1)) > 2
  • B. v1 < 1
  • C. v1 == v2
  • D. random.choice{[1,2,3]) > 0

Answer: B,D

 

NEW QUESTION 59
Which of the following lambda definitions are correct? (Select two answers)

  • A. lambda x, y; (x, y)
  • B. lanbda x, y; return x\\y - x%y
  • C. lambda x, y; x\\y - x%y
  • D. lambda (x, y = x\\y x%y

Answer: A,C

 

NEW QUESTION 60
Which of the following expressions evaluate to True? (Select two answers)

  • A. '1' + '1' + '1' < '1' * 3'
  • B. 121 + 1 != '!' + 2 * '2'
  • C. 'AbC' lower () < 'AB'
  • D. '3.14' != str(3.1415)

Answer: B,D

 

NEW QUESTION 61
What is the expected behavior of the following code?

It will:

  • A. print 0
  • B. cause a runtime exception
  • C. prints 3
  • D. print an empty line

Answer: B

 

NEW QUESTION 62
A method for passing the arguments used by the following snippet is called:

  • A. positional
  • B. named
  • C. sequential
  • D. keyword

Answer: A

 

NEW QUESTION 63
Assuming that String is six or more letters long, the following slice
String[1:-2]
is shorter than the original string by:

  • A. two chars
  • B. one char
  • C. three chars
  • D. four chars

Answer: C

 

NEW QUESTION 64
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: B

 

NEW QUESTION 65
You are going to read just one character from a stream called s. Which statement would you use?

  • A. ch = input(s, 1)
  • B. ch = s. input(1)
  • C. ch = s. read(l)
  • D. ch = read(s, 1)

Answer: C

 

NEW QUESTION 66
What is true about Python class constructors? (Select two answers)

  • A. the constructor's first parameter identifies an object currently being created
  • B. super-class constructor is invoked implicitly during constructor execution
  • C. the constructor can be invoked directly under strictly defined circumstances
  • D. the constructor cannot use the default values of the parameters

Answer: A

 

NEW QUESTION 67
Which of the equations are True? (Select two answers)

  • A. ord (chr (x)) = = x
  • B. chr (ord (x)) = = x
  • C. ord (ord (x)) = = x
  • D. chr (chr (x)) = = x

Answer: A,B

Explanation:
https://docs.python.org/3/library/functions.html#chr
https://docs.python.org/3/library/functions.html#ord

 

NEW QUESTION 68
What can you do if you don't like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta

  • A. you can shorten it to alpha. zeta and Python will find the proper connection
  • B. nothing; you need to come to terms with it
  • C. you can make an alias for the name using die as keyword
  • D. you can make an alias for the name using the a 1 i a s keyword

Answer: C

 

NEW QUESTION 69
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 21 ? (Select two answers)

  • A. self.queue.append(self.get last() +1)
  • B. queue.append(self.get last () + 1)
  • C. self.queue.append(self.queue[+1]
  • D. self.queue.append(get_Iast() + 1)

Answer: A

 

NEW QUESTION 70
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers) string = 'SKY' (:: -1) string = string (-1)

  • A. string (0) == string (-1
  • B. string is None
  • C. len (string) == 1
  • D. string (0) == 'Y'

Answer: C,D

 

NEW QUESTION 71
There is a stream named s open for writing. What option will you select to write a line to the stream''

  • A. s.writeln("Hello")
  • B. s.write("Hello\n")
  • C. s.writeline("Hello")
  • D. write(s, "Hello")

Answer: B

 

NEW QUESTION 72
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)

  • A. 'var1 in Class, diet
  • B. len(Object.__diet__) == 1
  • C. 'prop' in Class.__diet
  • D. 'var' in Object.__diet__

Answer: B,D

 

NEW QUESTION 73
What is the expected behavior of the following code?
x = 8 ** (1/3)
y = 2. if x < 2.3 else 3.
print(y)

  • A. the code is erroneus and it will not execute
  • B. it outputs 3.0
  • C. it outputs 2.0
  • D. it outputs 2. 5

Answer: C

 

NEW QUESTION 74
......


What is the duration, language, and format of PCAP - Certified Associate in Python Programming (PCAP-31-03) Exam

  • Type of Questions: Single-choice and multiple-choice questions
  • Duration of Exam: 65 minutes + 10 minutes (Non-Disclosure Agreement/Tutorial)
  • Passing score: 70%
  • Language of Exam: English
  • Number of Questions: 40

 

PCAP-31-03 Dumps PDF - 100% Passing Guarantee: https://www.exams4collection.com/PCAP-31-03-latest-braindumps.html

Latest PCAP-31-03 PDF Dumps & Real Tests Free Updated Today: https://drive.google.com/open?id=1C0sOiL6zEiC2H9V5JGnE23MejtK_KN-i