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
When executing the following program, it will output ______.score = 80if score<60: print(‘The score is %d’% score, end=’, ‘)print(‘Failed’)()
A. The score is 80, Failed
B. The score is 80
C. Failed
D. nothing