- Expert Verified, Online, Free.

MAIL US

info@examtopicspro.com

Python Institute PCAP-31-03 Exam Dumps

Certification Exams

Downloadable PDF versions

100% Confidential

Updated Regularly

Advanced Features

Number Of Questions

147

$ 39

Description

Exam Name: Certified Associate in Python Programming Exam
Exam Code: PCAP-31-03
Related Certification(s): Python Institute Certified Associate in Python Programming PCAP Certification
Certification Provider: Python Institute
Number of PCAP-31-03 practice questions in our database: 147 
Expected PCAP-31-03 Exam Topics, as suggested by Python Institute :

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

Q1. What is the expected behavior of the following code? x - 3 % 1 y -1 if x > else 0 print (y)

A.it outputs -1

B. the code is erroneous and it will not execute

C. it outputs 1

D. it outputs 0

Correct Answer: D

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

A.str is a string read in from the file named file.txt

B. a newlina character translation will be performed during the reads

C. if file. txt does not exist, it will be created

D. the opened file cannot be written with the use of the str variable

Correct Answer: A, D

Q3. 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],2)) > 2

B. v1 == v2

C. random.choice([1,2,3]) >=1

D. v1 >= 1

Correct Answer: B, C

Q4. The simplest possible class definition in Python can be expressed as:

A.class X:

B. class X: pass

C. class X: return

D. class X: {}

Correct Answer: A

$ 39

Frequently Asked Questions

ExamTopics Pro is a premium service offering a comprehensive collection of exam questions and answers for over 1000 certification exams. It is regularly updated and designed to help users pass their certification exams confidently.
Please contact team@examtopics.com and we will provide you with alternative payment options.
The subscriptions at Examtopics.com are recurring according to the Billing Cycle of your Subscription Plan, i.e. after a certain period of time your credit card is re-billed automatically until/unless you cancel your subscription.
Free updates are available for the duration of your subscription, after the subscription is expired, your access will no longer be available.