Python-Institute-PCAP-Questions-Answers
Python-Institute-PCAP-Questions-Answers
PCAP
Python Institute Certified Associate in Python Programming
40 Questions Exam – 70% Cut Score – Duration of 65 minutes
PCAP Exam Questions
Table of Contents:
Know Your PCAP Certification Well: .................................2
Python Institute PCAP Python Programming Associate
Certification Details: ..........................................................2
PCAP Syllabus: .................................................................3
Python Institute PCAP Sample Questions: ........................4
Study Guide to Crack Python Institute PCAP-31-03 PCAP
Exam: ................................................................................7
But don't worry the PCAP PDF is here to help you prepare in a stress free manner.
The PDF is a combination of all your queries like-
What is in the PCAP syllabus?
How many questions are there in the PCAP exam?
Which Practice test would help me to pass the PCAP exam at the first
attempt?
Passing the PCAP exam makes you Python Institute Certified Associate in Python
Programming. Having the Python Programming Associate certification opens
multiple opportunities for you. You can grab a new job, get a higher salary or simply
get recognition within your current organization.
PCAP Syllabus:
Topic Details Weights
- import variants; advanced qualifiying for nested modules
- dir(); sys.path variable
- math: ceil(), floor(), trunc(), factorial(), hypot(), sqrt();
random: random(), seed(), choice(), sample()
- platform: platform(), machine(), processor(), system(),
Modules and
version(), python_implementation(), 12%
Packages
python_version_tuple()
- idea, __pycache__, __name__, public variables,
__init__.py
- searching for modules/packages; nested packages vs
directory tree
- except, except:-except; except:-else:, except (e1,e2)
- the hierarchy of exceptions
Exceptions - raise, raise ex, assert 14%
- event classes, except E as e, arg property
- self-defined exceptions, defining and using
- ASCII, UNICODE, UTF-8, codepoints, escape sequences
- ord(), chr(), literals
- indexing, slicing, immutability
- iterating through
Strings - concatenating, multiplying, comparing (against strings 18%
and numbers)
- in, not in
- .isxxx(), .join(), .split()
- .sort(), sorted(), .index(), .find(), .rfind()
- ideas: class, object, property, method, encapsulation,
inheritance, grammar vs class, superclass, subclass
- instance vs class variables: declaring, initializing
- __dict__ property (objects vs classes)
- private components (instance vs classes), name
mangling
Object-Oriented - methods: declaring, using, self parameter
34%
Programming - instrospection: hasattr() (objects vs classes),
__name__, __module__, __bases__ properties
- inheritance: single, multiple, isinstance(), overriding, not
is and is operators
- inheritance: single, multiple, isinstance(), overriding, not
is and is operators
- constructors: declaring and invoking
You are going to read just one character from a stream called s. Which statement would you
use?
a) ch = read(s, 1)
b) ch = s.input(1)
c) ch = input(s, 1)
d) ch = s.read(l)
Answer: b
Question: 2
Answer: c, d
Question: 3
Answer: c, d
Question: 4
What can you deduce from the following statement0 str = open('file.txt', "rt")
Answer: a
Question: 5
Answer: a, c, d
Question: 6
What will the valueof the i variable be when the following loop finishes its execution? for i in
range(10): pass
a) 10
b) the variable becomes unavailable
c) 11
d) 9
Answer: d
Question: 7
Answer: a
Question: 8
a) yes, and it can differentiate its behavior between the regular launch and import
b) it depends on the Python version
c) yes, but it cannot differentiate its behavior between the regular launch and import
d) no. it is not possible; a module can be imported, not run
Answer: c
Question: 9
How many elements will the list2 list contain after execution of the following snippet?
List1= [False fori in range(1,10)] list2 = list1[-1:1:-1]
a) zero
b) five
c) seven
d) three
Answer: c
Question: 10
a) 3423e2
b) 3423e-2
c) 3423e-2
d) 3423e2
Answer: b, c