Quiz on Python Arguments
FREE Online Courses: Enroll Now, Thank us Later!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
- Which of the following is not a function argument in Python?
CorrectIncorrect -
Question 2 of 15
2. Question
- Which of the following is not true about function arguments?
CorrectIncorrect -
Question 3 of 15
3. Question
- What is the correct syntax to pass variable length arguments?
CorrectIncorrect -
Question 4 of 15
4. Question
What is the output of the following code?
a=5
def func(a):
print(a)
func(3)
CorrectIncorrect -
Question 5 of 15
5. Question
- Which of the following is true about keyword arguments?
CorrectIncorrect -
Question 6 of 15
6. Question
- Find the output of the below code.
a=’PythonGeeks’
def func(a):
a=’Python’
print(a)
func(‘Coding’)
CorrectIncorrect -
Question 7 of 15
7. Question
Find the output of the below code.
def add(a=4,b=0):
return a+b
add(5)
CorrectIncorrect -
Question 8 of 15
8. Question
Which of the following do not give any error?
CorrectIncorrect -
Question 9 of 15
9. Question
- Find the output of the below code?
def op(a,b,c):
print(a+b-c)
op(a=5,c=7,b=2)
op(c=7,b=2,a=5)
CorrectIncorrect -
Question 10 of 15
10. Question
def func(v1,v2,v3):
print(v1+v2+v3)
func(‘rge’,v2=’abc’,’prq’)
CorrectIncorrect -
Question 11 of 15
11. Question
- Which of the following arguments solve the problem of number of arguments passed?
CorrectIncorrect -
Question 12 of 15
12. Question
- What is the output of the below code?
def func(v1,v2,v3,v4):
print(v1*v2/(v3*v4))
func(4,8,9,)
CorrectIncorrect -
Question 13 of 15
13. Question
def fun(a,*b):
print(a+len(b))
fun(3,8,9,’t’,4.0)
CorrectIncorrect -
Question 14 of 15
14. Question
- Which of the following gives any error?
CorrectIncorrect -
Question 15 of 15
15. Question
def avg(*x):
print(sum(x)/len(x))
avg(5,6)
CorrectIncorrect