[Sep-2022] PCAP-31-03 PDF Dumps Extremely Quick Way Of Preparation [Q57-Q76]

Share

[Sep-2022] PCAP-31-03 PDF Dumps Extremely Quick Way Of Preparation

Download PCAP-31-03 Dumps (2022) - Free PDF Exam Demo

NEW QUESTION 57
A property that stores information about a given class's super-classes is named:

  • A. _super_
  • B. _upper_
  • C. _ancestors_
  • D. _bases_

Answer: A

 

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

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

Answer: A,D

 

NEW QUESTION 59
How many elements will the list1 list contain after execution of the following snippet?

  • A. three
  • B. zero
  • C. two
  • D. one

Answer: C

 

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

  • A. 'not' not in 'in'
  • B. 'a' not in 'ABC' .lower ()
  • C. ' t '.upper () in 'Thames'
  • D. 'in not' in 'not'

Answer: C

 

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

  • A. it outputs 1
  • B. it outputs 2
  • C. it outputs 3
  • D. the code is erroneous and it will not execute

Answer: B

 

NEW QUESTION 62
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. _name == _main_'
  • B. ClassA. _module_ == 'ClassA'
  • C. len(ClassB.__bases__) == 1
  • D. str(Object) == 'Object'

Answer: C

 

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

  • A. len ('' ' '') == 2
  • B. len ( ' ' ' 12
    34 ' ' ') == 4
  • C. ord (''0'') - ord (''9'') == 10
  • D. chr (ord('z') - 1 == 'Y'

Answer: A,D

 

NEW QUESTION 64
A Python module named pymod.py contains a variable named pyvar.
Which of the following snippets will let youaccess the variable? (Select twoanswers)

  • A. import pymod pymod.pyvar = 1
  • B. import pyvar from pymod pyvar = 1
  • C. from pymod import pyvar = 1
  • D. from pymod import pyvar pyvar ()

Answer: A,B

 

NEW QUESTION 65
A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:

  • A. lambda (x, y): x ** y
  • B. lambda (x, y) = x ** y
  • C. lambda x, y: x ** y
  • D. def lambda (x, y): return x ** y

Answer: C

 

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

  • A. it outputs 1
  • B. it outputs 2
  • C. it outputs 3
  • D. the code is erroneous and it will not execute

Answer: B

 

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

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

Answer: C

 

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

  • A. it outputs 6
  • B. it outputs 1
  • C. it raises an exception
  • D. it outputs 3

Answer: A

 

NEW QUESTION 69
What independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1] ? (Select two answers)

  • A. self .put (self.store[1])
  • B. self .put self.get () [-1])
  • C. self put stire(1])
  • D. put self.store(1])

Answer: A,C

 

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

  • A. it outputs 1
  • B. it outputs 2
  • C. the code is erroneous and it will not execute
  • D. it outputs 3

Answer: C

 

NEW QUESTION 71
You need data which can act as a simple telephone director)'. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)

  • A. dir={'Mom':'5551234567', * Dad':'5557654321'}
  • B. dir={'Mom':5551234567, 'Dad':5557654321>
  • C. dir={Mom:'5551234567', Dad:'5557654321'}
  • D. dir={Mom:5551234567, Dad:5557654321}

Answer: C,D

 

NEW QUESTION 72
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Choose two.)

  • A. A.VarA == 1
  • B. isinstance (obj_b,A)
  • C. B.VarA == 1
  • D. obj_a is obj_aa

Answer: B,D

 

NEW QUESTION 73
Which of the following snippets will execute without raising any unhandled exceptions? (Select answers) A)

B)

C)

D)

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

Answer: A,B,D

 

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

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

Answer: B,D

 

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

  • A. \e is an escape sequence used to mark the end of lines
  • B. a code point is a number assigned to a given character
  • C. II in ASCII stands for Information Interchange
  • D. ASCII is synonymous with UTF-8

Answer: C,D

 

NEW QUESTION 76
......

Enhance your career with PCAP-31-03 PDF Dumps - True Python Institute Exam Questions: https://www.passleadervce.com/Python-Institute-PCAP/reliable-PCAP-31-03-exam-learning-guide.html

New Download free PCAP-31-03 PDF for Python Institute Practice Tests: https://drive.google.com/open?id=1pLIi5lPv2AxxnQkCpJaeVLBjYxnYKmXJ