Python Institute PCAP Certified Official Practice Test PCAP-31-03 – Mar-2023 [Q61-Q85]

Python Institute PCAP Certified Official Practice Test PCAP-31-03 – Mar-2023 [Q61-Q85]

Rate this post

Python Institute PCAP Certified Official Practice Test PCAP-31-03 – Mar-2023

Ace Python Institute PCAP-31-03 Certification with Actual Questions Mar 25, 2023 Updated

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

 
 
 
 

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

 
 
 
 

NEW QUESTION 63
The following expression
1+-2
is:

 
 
 
 

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

 
 
 
 

NEW QUESTION 65
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”)

 
 
 
 

NEW QUESTION 66
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet’s output equal to [0, 1, 1] ? (Select two answers)

 
 
 
 

NEW QUESTION 67
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)

 
 
 
 

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

 
 
 
 

NEW QUESTION 69
What is the expected output of the following code if there is no file named non existing_file inside the working directory?

 
 
 
 

NEW QUESTION 70
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

 
 
 
 

NEW QUESTION 71
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

 
 
 
 

NEW QUESTION 72
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers) string = ‘python’ [::2] string = string[-1] + string[-2]

 
 
 
 

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

 
 
 
 

NEW QUESTION 74
There is a stream named s open for writing. What option will you select to write a line to the stream”

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

NEW QUESTION 78
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

 
 
 
 

NEW QUESTION 79
Which of the following invocations are valid? (Select two answers)

 
 
 
 

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

 
 
 
 

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

 
 
 
 

NEW QUESTION 82
What is the expected output of the following code?

 
 
 
 

NEW QUESTION 83
What is the output of the following piece of code?

 
 
 
 

NEW QUESTION 84
Is it possible to safely check if a class/object has a certain attribute?

 
 
 
 

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

 
 
 
 

Topics of PCAP – Certified Associate in Python Programming (PCAP-31-03) Exam

The syllabus for the PCAP-31-03 exam dumps is listed below in detail of each section and their topics:

1. Control and Evaluations (25%)

Objectives covered by this section:

  • assignments and shortcut operators
  • literals: Boolean, integer, floating-point numbers, scientific notation, strings
  • numeric operators: * / % // + –
  • accuracy of floating-point numbers
  • basic concepts: interpreting and the interpreter, compilation and the compiler, language elements, lexis, syntax and semantics, Python keywords, instructions, indenting
  • expanding loops: while-else, for-else, nesting loops, and conditional statements
  • the pass instruction
  • basic input and output: input(), print(), int(), float(), str() functions
  • relational operators (== != > >= < <= ), building complex Boolean expressions
  • bitwise operators: ~ & ^ | « »
  • operators: unary and binary, priorities and binding
  • simple strings: constructing, assigning, indexing, slicing comparing, immutability
  • conditional statements: if, if-else, if-elif, if-elif-else
  • building loops: while, for, range(), in, iterating through sequences
  • controlling loop execution: break, continue
  • string operators: * +
  • Boolean operators: not and or
  • simple lists: constructing vectors, indexing, and slicing, the len() function

2. Data Aggregates (25%)

Objectives covered by this section:

  • strings in detail: ASCII, UNICODE, UTF-8, immutability, escaping using the character, quotes and apostrophes inside strings, multiline strings, copying vs. cloning, advanced slicing, string vs. string, string vs. non-string, basic string methods (upper(), lower(), isxxx(), capitalize(), split(), join(), etc.) and functions (len(), chr(), ord()), escape characters
  • tuples: indexing, slicing, building, immutability
  • tuples vs. lists: similarities and differences, lists inside tuples and tuples inside lists

3. Functions and Modules (25%)

Objectives covered by this section:

  • import directives, qualifying entities with module names, initializing modules
  • hiding module entities
  • writing and using modules, the name variable
  • lambda functions, defining and using
  • return and yield keywords, returning results, the None keyword, recursion
  • parameters vs. arguments, positional keyword and mixed argument passing, default parameter values
  • converting generator objects into lists using the list() function
  • defining and invoking your functions and generators
  • Python hashbangs, using multiline strings as module documentation
  • map(), filter(), reduce(), reversed(), sorted() functions and the sort() method
  • pyc file creation and usage
  • the if operator

4. Classes, Objects, and Exceptions (25%)

Objectives covered by this section:

  • read(), readinto(), readline(), write(), close() methods
  • class methods: defining and using the self-parameter meaning and usage
  • single inheritance vs. multiple inheritances
  • hasattr(), type(), issubclass(), isinstance(), super() functions
  • the init method
  • class attributes: class variables and instance variables, defining, adding, and removing attributes, explicit constructor invocation
  • the anatomy of an exception object
  • input/output basics: opening files with the open() function, stream objects, binary vs. text files, newline character translation, reading and writing files, byte array objects
  • writing and using constructors
  • defining your classes, superclasses, subclasses, inheritance, searching for missing class components, creating objects
  • exceptions hierarchy, assigning more than one exception to one except branch
  • inheritance and overriding, finding class/object components
  • adding your exceptions to an existing hierarchy
  • the try-except-else-finally block, the raise statement, the except-as variant
  • the role of the str method
  • using predefined exceptions and defining your ones
  • assertions

 

Try Free and Start Using Realistic Verified PCAP-31-03 Dumps Instantly.: https://www.examcollectionpass.com/Python-Institute/PCAP-31-03-practice-exam-dumps.html

         

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter the text from the image below