Assuming that the code below has been placed inside a file named code.py and executed successfully which of the following expressions evaluate to True? (Select two answers)
Which of the following expression evaluate to True? (Select two answers)
A)
B)
C)
D)
Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b
Which of the following snippets will execute without raising any unhandled exceptions? (Select answers)
A)
B)
C)
D)
What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?
Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers)
Expected output:
1 2 3
Code:
A property that stores information about a given class's super-classes is named:
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)
What is the expected output of the following code if there is no file named non existing_file inside the working directory?
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)
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)
Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)
How many elements will the list1 list contain after execution of the following snippet?
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)
Assuming that the code below has been placed inside a file named code.py and executed successfully, which of the following expressions evaluate to True? (Select two answers)
Which of the following words can be used as a variable name? (Select two valid names)
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Choose two.)