PCPP-32-101 Exam Questions
86 real PCPP-32-101 exam questions with expert-verified answers and explanations. Page 1 of 2.
- Question #1
Select the true statement about composition.
- Question #2
Analyze the following snippet and select the statement that best describes it.
- Question #3
Analyze the following snippet and select the statement that best describes it.
- Question #4
The following snippet represents one of the OOP pillars. Which one is that?
- Question #5
Analyze the following function and choose the statement that best describes it.
- Question #6
Analyze the following snippet and select the statement that best describes it.
- Question #7
Analyze the following snippet and decide whether the code is correct and/or which method should be distinguished as a class method.
- Question #8
Analyze the code and choose the best statement that describes it.
- Question #9
Which function or operator should you use to obtain the answer True or False to the question "Do two variables refer to the same object?"
- Question #10
Which sentence about the @property decorator is false?
- Question #11
Select the true statement about the __name__ attribute.
- Question #12
What is a static method?
- Question #13
What is true about type in the object-oriented programming sense?
- Question #14
What does the term deserialization mean? (Choose the best answer.)
- Question #15
What is a __traceback__? (Choose two.)
- Question #18
Select the true statement related to PEP 257.
- Question #19
Select the true statements related to PEP 8 programming recommendations for code writing. (Choose two.)
- Question #20
Select the true statements related to PEP 8 naming conventions. (Choose two.)
- Question #21
Select the true statement about PEP 8 recommendations related to line breaks and binary operators.
- Question #22
Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespaces in expressions and statements. (Choose two.)
- Question #23
Which of the following values can be returned by the messagebox.askquestion() method?
- Question #24
What will happen if the main window is too small to fit all its widgets?
- Question #25
What is true about the unbind() method? (Choose two.)
- Question #26
If purple can be obtained from mixing red and blue, which color codes represent the two ingredients? (Choose two.)
- Question #27
What is true about the invocation of the cget() method?
- Question #28
Which of the following will set the button text's font to 12 point italics Arial? (Choose two.)
- Question #29
What is true about the unbind_all() method? (Choose two.)
- Question #30
If w is a correctly created main application window, which method would you use to fix both of the main window's dimensions?
- Question #31
Select the true statements about the connection-oriented and connectionless types of communication. (Choose two.)
- Question #32
Select the true statements about sockets. (Choose two.)
- Question #33
Select the true statement about the socket.gaierror exception.
- Question #34
Select the true statements about the json.dumps() function. (Choose two.)
- Question #35
What is ElementTree?
- Question #36
In the JSON processing context, the term serialization:
- Question #37
Select the true statements about the following invocation: (Choose two.)
- Question #38
A socket object is usually created by which one of the following invocations?
- Question #39
Select the true statements about the sqlite3 module. (Choose two.)
- Question #40
Which of the following constants will be used if you do not define the quoting argument in the writer method provided by the csv module?
- Question #41
Which one of the following methods allows you to debug an XML tree in the xml.etree.ElementTree module?
- Question #42
Select the true statements about the sqlite3 module. (Choose two.)
- Question #43
What is the result of the following code?
- Question #44
What will be the content of the colors csv file when you run the following code? A. B. C.
- Question #45
Which of the following methods allow you to load a configuration using ConfigParser? (Choose two.)
- Question #46
What is explicit exception chaining?
- Question #47
Which of the following types cannot be pickled?
- Question #48
What is a method?
- Question #49
Select the true statement about the __dict__ attribute.
- Question #50
Which of the following statements regarding the __traceback__ attribute are true? (Choose two.)
- Question #51
When are instance variables created? (Choose the best answer.)
- Question #52
What is true about a parameter named cls?