Chapter 7: Python functions - Online Test

Q1. A named blocks of code that are designed to do one specific job is called as
Answer : Option C
Explaination / Solution:
No Explaination.


Q2. A Function which calls itself is called as
Answer : Option B
Explaination / Solution:
No Explaination.


Q3. Which function is called anonymous un-named function
Answer : Option A
Explaination / Solution:
No Explaination.


Q4. Which of the following keyword is used to begin the function block?
Answer : Option D
Explaination / Solution:
No Explaination.


Q5. Which of the following keyword is used to exit a function block?
Answer : Option B
Explaination / Solution:
No Explaination.


Q6. While defining a function which of the following symbol is used.
Answer : Option C
Explaination / Solution:
No Explaination.


Q7. In which arguments the correct positional order is passed to a function?
Answer : Option D
Explaination / Solution:
No Explaination.


Q8. Read the following statement and choose the correct statement(s). (I) In Python, you don’t have to mention the specific data types while defining function. (II) Python keywords can be used as function name.
Answer : Option A
Explaination / Solution:
No Explaination.


Q9. Pick the correct one to execute the given statement successfully. if ____ : print(x, " is a leap year")
Answer : Option B
Explaination / Solution:
No Explaination.


Q10. Which of the following keyword is used to define the function testpython(): ?
Answer : Option C
Explaination / Solution:
No Explaination.