Python Institute PCAP-31-03 - Certified Associate in Python Programming
The following class definition is given. We want the show () method to invoke the get () method, and then output the value the get () method returns. Which of the invocations should be used instead of XXX?

Which of the following lines of code will work flawlessly when put independently inside the inc ( ) method in order to make the snippet’s output equal to 3? (Select two answers)


The following expression
1+-2
is:
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")
What is the expected behavior of the following snippet?

It will:
Which of the following statements are true? (Select two answers)
What is the expected behavior of the following code?

A Python module named pymod.py contains a variable named pyvar.
Which of the following snippets will let you access the variable? (Select two answers)
Assuming that the following code has been executed successfully, select the expressions which evaluate to true.
(Select two answers.)

A variable stored separately in every object is called:
