Pay attention to our Valid and Useful Exam Reviews and take our Exam Torrent as your Study Material. With little time and energy investment, you have a High Efficiency Study experience. Pass your Actual Test with the help of our Actual Reviews.

Pass Your Python Institute Exam with PCAP-31-03 Exam Dumps (Updated 120 Questions) [Q30-Q47]

Share

Pass Your Python Institute Exam with PCAP-31-03 Exam Dumps (Updated 120 Questions)

PCAP-31-03 Exam Dumps - Python Institute Practice Test Questions


How to book the PCAP - Certified Associate in Python Programming (PCAP-31-03) Exam

You must follow these steps to participate in the PCAP - Certified Associate in Python Programming (PCAP-31-03) Exam:

  • Step 1: Move to the official website of Python Institute
  • Step 2: Tap on “Schedule Exam” in the options on the website
  • Step 3: Create a user account, or sign in if you already have an account
  • Step 4: Select the exam, date, time and confirm the application by paying for the exam

Python Institute PCAP-31-03 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Math: ceil(), floor(), trunc(), factorial(), hypot(), sqrt(); random: random(), seed(), choice(), sample()
  • indexing, slicing, immutability
Topic 2
  • List comprehension: if operator, using list comprehensions
  • searching for modules/packages; nested packages vs directory tree
Topic 3
  • Instance vs class variables: declaring, initializing
  • self-defined exceptions, defining and using
Topic 4
  • Event classes, except E as e, arg property
  • import variants; advanced qualifiying for nested modules
Topic 5
  • Inheritance: single, multiple, isinstance(), overriding, not is and is operators
Topic 6
  • Ideas: class, object, property, method, encapsulation, inheritance, grammar vs class, superclass, subclass
Topic 8
  • Instrospection: hasattr() (objects vs classes), __name__, __module__, __bases__ properties
Topic 9
  • Concatenating, multiplying, comparing (against strings and numbers)
  • ASCII, UNICODE, UTF-8, codepoints, escape sequences
Topic 10
  • I/O Operations: I/O modes, predefined streams, handles; text/binary modes
  • inheritance: single, multiple, isinstance(), overriding, not is and is operators
Topic 11
  • Private components (instance vs classes), name mangling
  • closures: meaning, defining, and using closures

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

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

Answer: D

 

NEW QUESTION 31
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")

  • A. the opened file cannot be written with the use of the str variable
  • B. str is a string read in from the file named file.txt
  • C. a newlina character translation will be performed during the reads
  • D. if file. txt does not exist, it will be created

Answer: A,B

 

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

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

Answer: A

 

NEW QUESTION 33
An operator able to perform bitwise shifts is coded as (select two answers)

  • A. ++
  • B. >>
  • C. - -
  • D. <<

Answer: B,D

 

NEW QUESTION 34
What is true about Python packages? (Select two answers)

  • A. the sys.path variable is a list of strings
  • B. a code designed to initialize a package's state should be placed inside a file named init.py
  • C. a package contents can be stored and distributed as an mp3 file
  • D. _pycache_is a folder that stores semi-completed Python modules

Answer: B,D

 

NEW QUESTION 35
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 36
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 37
What is the expected output of the following snippet?

  • A. the code is erroneous
  • B. 0
  • C. 1
  • D. 2

Answer: A

Explanation:

 

NEW QUESTION 38
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 39
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

 

NEW QUESTION 40
What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?

  • A. the number of lines contained inside the file
  • B. the length of the last line from the file
  • C. 0
  • D. the length of the first line from the file

Answer: C

 

NEW QUESTION 41
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 42
Which of the following words can be used as a variable name? (Select two valid names)

  • A. true
  • B. For
  • C. for
  • D. True

Answer: A,B

 

NEW QUESTION 43
What can you do if you don't like a long package path like this one?

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

Answer: B

 

NEW QUESTION 44
With regards to the directory structure below, select the proper forms of the directives in order to import module_ a. (Select two answers)

  • A. import module_a from pypack
  • B. import pypack.module_a
  • C. import module_a
  • D. from pypack import module_a

Answer: B,D

 

NEW QUESTION 45
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

 

NEW QUESTION 46
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.get () [-1])
  • B. put self.store(1])
  • C. self put stire(1])
  • D. self .put (self.store[1])

Answer: C,D

 

NEW QUESTION 47
......

New Real PCAP-31-03 Exam Dumps Questions: https://drive.google.com/open?id=10KYI60k3AGUTWOrg4l5KYKm_QgY2wbdl

Pass Your PCAP-31-03 Exam Easily with Accurate PDF Questions: https://www.examsreviews.com/PCAP-31-03-pass4sure-exam-review.html