PCPP-32-101 Exam Questions
86 real PCPP-32-101 exam questions with expert-verified answers and explanations. Page 2 of 2.
- Question #53
If inheritance can result in MRO inconsistency, should you stop using inheritance altogether and make use of polymorphism instead?
- Question #54
Which function can be used to get a list of methods inherent to an object?
- Question #55
Analyze the following snippet. Which method should be distinguished as a static method?
- Question #56
Which sentence is false?
- Question #58
Which of the following is not a widget property?
- Question #59
If you want to include a UNICODE code point into a JSON string, which prefix will you use?
- Question #60
What is socket.timeout?
- Question #61
What HTTP status code is associated with the standard response for a successful HTTP request: OK?
- Question #62
Which of the following are the names of HTTP methods? (Choose two.)
- Question #63
Select the correct statements about the csv module. (Choose two.)
- Question #64
When writing function names according to PEP 8, which style should be used?
- Question #65
Your team is documenting an API using Python's built-in tools. Which standard should be followed for writing docstrings?
- Question #66
A junior developer asks for guidance on documenting code using type hints. Which standard should you recommend?
- Question #67
You are developing a class where instances need to maintain a unique ID. Which approach would ensure this without duplicating IDs?
- Question #68
The function named f() is bound as a callback to a widget named w. You have to invoke the callback on demand. How will you do it?
- Question #69
Select the true statements about invoking a widget's callback manually. (Choose two.)
- Question #70
Which keyword arguments are in use when the grid() manager is invoked? (Choose two.)
- Question #71
What is true about an event designated as "<ButtonRelease-1>"? (Choose two.)
- Question #72
The initial value of the StringVar() variable is:
- Question #73
Select the true statements related to PEP 8 programming recommendations for exception handling. (Choose two.)
- Question #74
Select the true statements related to PEP 8 naming conventions. (Choose two.)
- Question #75
Select the true statements related to PEP 257. (Choose two.)
- Question #76
Select the true statements related to PEP 8 recommendations for string quotes. (Choose two.)
- Question #77
Select the true statement about PEP 8 recommendations related to imports.
- Question #78
The tkinter module is in fact an adapter to the GUI toolkit named:
- Question #79
What is the best description of inheritance in Python?
- Question #80
Your tkinter application needs to display a list of items for users to select. Which widget should you use?
- Question #81
Which method is used to open a file for both reading and writing in text mode?
- Question #82
You need to fetch all records from a database using sqlite3. Which method should you use after executing the query?
- Question #83
A user reported that button clicks in your application are not triggering any action. What is the most likely cause?
- Question #84
Your project includes extensive internal APIs. Which standard ensures proper documentation practices for public methods?
- Question #86
Select the true statements about XML modules in the Python standard library. (Choose two.)
- Question #87
What is the result of the following code assuming that the SELECT query returns three records?
- Question #88
Select a log that matches the following format: '%(name)s[%(levelname)s][%(asctime)s]:%(message)s'
- Question #89
Select the true statements about the sqlite3 module. (Choose two.)
- Question #90
What is the result of the following code?