Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

A. a ! = b
B. a ( ) == 4
C. a is not None
D. b ( ) == 4
正解:B,C
質問 2:
What is true about Python packages? (Select two answers)
A. hashbang is the name of a built-in Python function
B. the__name__variable content determines the way in which the module was run
C. __pycache__is the name of a built-in variable
D. a package can be stored as a tree of sub-directories/sub-folders
正解:C,D
質問 3:
What is the expected behavior of the following code?

A. it outputs 1
B. it outputs 6
C. it raises an exception
D. it outputs 3
正解:B
質問 4:
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)
A. dir={'Mom':'5551234567', * Dad':'5557654321'}
B. dir={Mom:'5551234567', Dad:'5557654321'}
C. dir={Mom:5551234567, Dad:5557654321}
D. dir={'Mom':5551234567, 'Dad':5557654321>
正解:B,C
質問 5:
What is the expected output of the following code?

A. 4
B. 5
C. 3
D. an exception is raised
正解:C
質問 6:
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)
A. import pymod pymod.pyvar = 1
B. from pymod import pyvar pyvar ()
C. import pyvar from pymod pyvar = 1
D. from pymod import pyvar = 1
正解:A,C
Kudoh -
合格できました!他の方るよもおっしゃっていうに、模擬試験を何回か解き、身に付けることで合格できました!
ありがとうございました。お薦めします。