Q1. Which of the given argument types can be skipped from a function call?, a) Positional argument, b) Keyword argument, c) Named argument, d) Default argument, Q2. What do you mean by a void function?, a) A function not returning any value, b) Non- fruitful function, c) A function returning a value, d) Both a and b, Q3. Which of the following statements is not true for parameter passing to functions ?, a) You can pass positional arguments in any order ., b) You can pass keyword arguments in any order ., c) You can call a function with positional and keyword arguments ., d) Positional arguments must be before keyword arguments in a function call., Q4. Which values are used by the functions to communicate information back to the caller ?, a) local, b) global, c) return, d) random, Q5. Consider below given function headers . Identify of these will not cause error ?, (i) def fun(a=1,b):, (ii) def fun(a=1,b,c=2):, (iii) def fun(a=1,b=2,c=3,d):, (iv) def fun(a=3,b=4,c=5):

CBP - UNDERSTANDING FUNCTIONS

Leaderboard

Visual style

Options

Switch template

Continue editing: ?