Question 21
Can a module run like regular code?
- yes, and it can differentiate its behavior between the regular launch and import
- it depends on the Python version
- yes, but in cannot differentiate its behavior between the regular launch and import
- no, it is not possible; a module can be imported, not run
Question 22
Select the valid fun () invocations: (Choose two.)
- fun (b=1)
- fun (a=0)
- fun (b=1, 0)
- fun (1)
Question 23
A file name like this one below says that: (Choose three.) services, cpython 36.pyc
- the interpreter used to generate the file is version 3.6
- it has been produced by CPython
- it is the 36 version of the file
- the file comes from the services.py source file
Question 24
What is the expected behavior of the following snippet? It will:
- cause a runtime exception
- print 1
- print 0, [1]
- print [1]
Question 25
What can you do if you don't like a long package path like this one?
- you can make an alias for the name using the alias keyword
- nothing, you need to come to terms with it
- you can shorten it to alpha . zeta and Python will find the proper connection
- you can make an alias for the name using the as keyword