Download PCAP-31-03 Exam Dumps Questions to get 100% Success in Python Institute [Q28-Q48]

Share

Download PCAP-31-03 Exam Dumps Questions to get 100% Success in Python Institute 

100% Accurate Answers! PCAP-31-03 Actual Real Exam Questions


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 exams.

 

NEW QUESTION # 28
What is the expected behavior of the following code?

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

Answer: D


NEW QUESTION # 29
What is true about Object-Oriented Programming in Python? (Select two answers)

  • A. each object of the same class can have a different set of methods
  • B. a subclass is usually more specialized than its superclass
  • C. the same class can be used many times to build a number of objects
  • D. if a real-life object can be described with a set of adjectives, they may reflect a Python object method

Answer: C,D


NEW QUESTION # 30
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. 0
  • B. an errno value corresponding to file not found
  • C. 1
  • D. 2

Answer: A


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

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

Answer: C,D


NEW QUESTION # 32
The following class hierarchy is given. What is the expected output of the code?

  • A. CC
  • B. BC
  • C. BB
  • D. AA

Answer: B


NEW QUESTION # 33
What is the expected output of the following code?

  • A. 0
  • B. an exception is raised
  • C. 1
  • D. 2

Answer: A


NEW QUESTION # 34
Which of the following expression evaluate to True? (Select two answers) A)

B)

C)

D)

  • A. Option B
  • B. Option C
  • C. Option D
  • D. Option A

Answer: B,C


NEW QUESTION # 35
What is the expected behavior of the following code?

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

Answer: A


NEW QUESTION # 36
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)

  • A. class Class_4 (D, A) : pass
  • B. class Class_3(A,C): pass
  • C. class Class_2(B,D): pass
  • D. class Class_1(C,D): pass

Answer: A,D


NEW QUESTION # 37
Which of the following statements are true? (Select two answers)

  • A. Python strings can be concatenated
  • B. Python strings are mutable
  • C. Python strings can be sliced like lists
  • D. Python strings are actually lists

Answer: A,C


NEW QUESTION # 38
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) = 'Object1
  • B. Class A.__module__ == ' main__'
  • C. __name__== '__main__'
  • D. len (ClassB.__bases__) == 2

Answer: B,D


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

  • A. float ('3.14') == str('3.'+'14')
  • B. '8' + '8' !=2 * '8'
  • C. 121 +1 == int ('1' + 2 * '2')
  • D. 'xyz'.lower() 'XY'

Answer: C,D


NEW QUESTION # 40
What is the expected output of the following snippet?

  • A. False upper
  • B. True lower
  • C. False lower
  • D. True upper

Answer: B


NEW QUESTION # 41
Which of the following statements are true? (Select two answers)

  • A. ASCII is the name of a character coding standard
  • B. a code point is a point inside the code when execution stops immediately
  • C. UTF-8 is one of the ways of representing UNICODE code points.
  • D. an escape sequence can be recognized by the # sign put in front of it.

Answer: A,B


NEW QUESTION # 42
What is the expected behavior of the following code?

  • A. it outputs list assignment index out of range
  • B. the code is erroneous and it will not execute
  • C. it outputs error
  • D. it outputs <class ' IndexError' >

Answer: A


NEW QUESTION # 43
The following expression
1+-2
is:

  • A. equal to 1
  • B. invalid
  • C. equal to -1
  • D. equal to 2

Answer: C

Explanation:


NEW QUESTION # 44
What would you use instead of XXX if you want to check whether a certain ' key' exists in a dictionary called diet? (Select two answers) II if XXX:
print("Key exists")

  • A. 'key' in diet
  • B. diet['key'] != None
  • C. 'key' in diet.keys()
  • D. diet.exists('key')

Answer: B,C


NEW QUESTION # 45
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: A


NEW QUESTION # 46
What is the expected behavior of the following code?

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

Answer: A


NEW QUESTION # 47
What is true about the following snippet? (Select two answers)

  • A. the string it's nice to see you will be seen
  • B. the code will raise an unhandled exception
  • C. the string what a pity will be seen
  • D. the siring I feel fine 'will be seen

Answer: C,D


NEW QUESTION # 48
......

Best Value Available! Realistic Verified Free PCAP-31-03 Exam Questions: https://www.fast2test.com/PCAP-31-03-premium-file.html

Pass Your Exam Easily! PCAP-31-03 Real Question Answers Updated: https://drive.google.com/open?id=1WFMeBk_ZF6yNRuREV2bmUVARqaSVUc2Y

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어