Loading questions...
Updated
Which of the following snippets will execute without raising any unhandled exceptions? (Choose two.)
Which of the following statements are true? (Choose two.)
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Choose two.)
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Choose two.)
What is the expected behavior of the following code?
A Python module named pymod.py contains a function named pyfun().
Which of the following snippets will let you invoke the function? (Choose two.)
Which of the following expressions evaluate to True? (Choose two.)
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Choose two.)
string = 'SKY'[::-1]
string = string[-1]
What is true about the bases property?
Which of the following statements are true? (Choose two.)
What is the expected behavior of the following code?
What is the expected output of the following code if there is no file named non_existing_file inside the working directory?
What is the expected behavior of the following code?
Which of the following expressions evaluate to True? (Choose two.)
Which of the following expressions evaluate to True? (Choose two.)
What is the expected behavior of the following code?
What is the expected behavior of the following code?
the_list = "alpha;beta;gamma".split(";")
the_string = ''.join(the_list)
print(the_string.isalpha())
Which of the following invocations are valid? (Choose two.)
Which of the following expressions evaluate to True? (Choose two.)
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Choose two.) string = 'python'[::2] string = string[-1] + string[-2]
Create a free account to unlock all questions for this exam.
Log In / Sign UpWhat is true about Python packages? (Choose two.)
What is true about the following snippet? (Choose two.)