Which of the following function calls will produce the same output as calling lotsOfParameters3(1,2,3,4,5)?
A. 1. lotsOfParameters3()
B. 2. lotsOfParameters3(1,2)
C. 3. lotsOfParameters3(1,e=5,d=4,c=3,b=2)
D. 4. lotsOfParameters3(e=5,d=4,c=3,b=2,1)
E. 5. lotsOfParameters3(e=5,a=1,d=4,b=2,c=3)
查看答案
Consider the function below:def lotsOfParameters3(a,b,c=3,d=4,e=5): print a print b print c print d print eWhich of the following function calls will result in an error?
A. 1. lotsOfParameters3()
B. 2. lotsOfParameters3(1, 2)
C. 3. lotsOfParameters3(1, c=2)
D. 4. lotsOfParameters3(1, c=2, 3)
E. 5. lotsOfParameters3(1, c=2, b=3)
Which of the following function calls will produce the same output as calling lotsOfParameters2(1,2,3,4,5)?
A. 1. lotsOfParameters2()
B. 2. lotsOfParameters2(1,2,3,4)
C. 3. lotsOfParameters2(5,4,3,2,1)
Consider the function below:def lotsOfParameters2(a=1,b=2,c=3,d=4,e=5): print a print b print c print d print eWhich of the following function calls will result in an error?
A. 1. lotsOfParameters2()
B. 2. lotsOfParameters2(1, 2)
C. 3. lotsOfParameters2(1, c=2)
D. 4. lotsOfParameters2(1, c=2, 3)
E. 5. lotsOfParameters2(1, e=20, b=3)
F. 6. lotsOfParameters2(1, e=20, b=3, a=10)
Which of the following function calls will produce the same output as calling lotsOfParameters1(1,2,3,4,5)?
A. 1. lotsOfParameters1()
B. 2. lotsOfParameters1(1,2)
C. 3. lotsOfParameters1(1,e=5,d=4,c=3,b=2)
D. 4. lotsOfParameters1(e=5,d=4,c=3,b=2,1)
E. 5. lotsOfParameters1(e=5,a=1,d=4,b=2,c=3)