3 Months Free Update
3 Months Free Update
3 Months Free Update
With regards to the directory structure below, select the proper forms of the directives in order to import module_c. (Select two answers)

What would you use instead of XXX if you want to check whether a certain ‘ key' exists in a dictionary called diet? (Select two answers)
II
if XXX:
print("Key exists")
Which of the following words can be used as a variable name? (Select two valid names)
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?

Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)
Which of the following lambda function definitions are correct? (Select two answers)
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

An operator able to perform bitwise shifts is coded as (select two answers)
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

What is the expected behavior of the following code?
x = 8 ** (1/3)
y = 2. if x < 2.3 else 3.
print(y)
If you want to transform a string into a list of words, what invocation would you use? (Select two answers)
Expected output:

What will be the value of the i variable when the while e loop finishes its execution?

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)

Python's built-in function named open () tries to open a file and returns:
A file name like this one below says mat: (select three answers)
services. cpython-36.pyc
Which of the following snippets will execute without raising any unhandled exceptions? (Select answers)
A)

B)

C)

D)

There is a stream named s open for writing. What option will you select to write a line to the stream''
You are going to read just one character from a stream called s. Which statement would you use?
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)

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)