Among the following options, the wrong descriptions include ______()
A. The parameter name and the argument name of the function must be exactly the same
B. Assigning values to parameters in the function body will affect the values of the corresponding arguments
C. If the argument is a list object, you can modify the elements of the list object by the parameter in the function body
D. When there are multiple parameters, each parameter is separated by a comma
查看答案
For the following function definition:def StudentInfo (name, country=’China’, age=18): print (‘%s, %s, %d’%(name, country, age))The correct function call include ______()
A. StudentInfo(‘David’, ‘United States’, 20)
B. StudentInfo(‘David’, , 20)
C. StudentInfo(‘David’, age=20)
D. StudentInfo(name=’David’, ‘United States’)
When executing the following program, it will output ______.def StudentInfo (country=’China’, name): print (‘% s, %s’% (name, country))StudentInfo (‘United States’, ‘David’)()
A. David, United States
B. United States, David
C. David, China
D. Report an error
When defining a function, that given in a pair of parentheses after the function name is called ______()
A. parameter
B. argument
C. type parameter
D. name parameter
Among the following options, the correct descriptions inclue ______()
A. pass represents an empty operation, only plays a place-occupied role
B. pass can only be used in conditional statements
C. For the statement sequence under if, it is allowed that there is only one pass statement
D. pass can be used to jump out of the loop statement