A method for passing the arguments used by the following snippet is called:

A. sequential
B. named
C. keyword
D. positional
正解:C
質問 2:
Executing the following snippet

will cause the dct:
A. to hold two keys named 'pi' linked to 3.14 and 3.1415 respectively
B. to hold two keys named 'pi' linked to 3.1415
C. to hold two key named 'pi' linked to 3.14 and 3.1415
D. to hold one key named 'pi' linked to 3.1415
正解:D
質問 3:
Assuming that 1st is a four-element list is there any difference between these two statements?

A. yes, there is, the first line deletes the list as a whole, the second line removes all the elements except the first one
B. yes, there is, the first line empties the list, the second line deletes the list as a whole
C. no, there is no difference
D. yes, there is, the first line deletes the list as a whole, the second line just empties the list
正解:D
質問 4:
What is the expected output of the following snippet?

A. ABC
B. The code will cause a runtime exception
C. 123
D. abc
正解:B
質問 5:
Which of the following words can be used as a variable name? (Select two valid names)
A. True
B. true
C. for
D. For
正解:B,D
質問 6:
And operator able to perform bitwise shifts is coded as (Select two answers)
A. <<
B. >>
C. --
D. ++
正解:A,B
質問 7:
How many lines does the following snippet output?

A. two
B. four
C. three
D. one
正解:D
質問 8:
What can you deduce from the following statement? (Select two answers)

A. if file. txt does not exist, it will be created
B. a newline character translation will be performed during the reads
C. the opened file cannot be written with the use of the str variable
D. str is a string read in from the file named file.txt
正解:C,D