Which of the following literals reflect the value given as 34.23? (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)
How many elements will the list1 list contain after execution of the following snippet?
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]
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
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?
Assuming that the following code has been executed successfully, select the expressions which evaluate to true.
(Select two answers.)
A file name like this one below says mat: (select three answers)
services. cpython-36.pyc
If you need a function that does nothing, what would you use instead of XXX? (Select two answers)
def idler ( ):
XXX
What is the expected output of the following code if there is no file named non existing_file inside the working directory?
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)
If you want to transform a string into a list of words, what invocation would you use? (Select two answers)
Expected output:
Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)