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)
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)
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")
What is the expected behavior of the following code?
The first parameter of each method:
What is the expected output of the following code?
Which of the following expression evaluate to True? (Select two answers)
How many lines does the following snippet output?
What is the expected output of the following code?
def foo(x,y,z):
return x(y) - x(z)
print{f00(lambda x: x % 2, 2, 1) )
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)
Which one of the platform module functions should be used to determine the underlying platform name?
Which of the following lambda function definitions are correct? (Select two answers)
What is the expected output of the following code?
There is a stream named s open for writing. What option will you select to write a line to the stream''
What is the expected behavior of the following code?
Which of the listed actions can be applied to the following tuple? (Select two answers)
What is true about Python class constructors? (Select two answers)
What is the expected behavior of the following code?
What is the expected behavior of the following code?
How many elements will the list2 list contain after execution of the following snippet?
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]
What is the expected behavior of the following code?