Solveeit Logo

Question

Computer Science Question on Types of Functions

Consider the function header given below and identify the correct call statement(s) to call the below function.
def fun(x, y=10, z=15);
A. fun(30)
B. fun(30, 40)
C. fun()
D. fun(10, 20, 30)
E. fun(10, 20, 30, 40)
Choose the correct answer from the options given below :

A

A, B and E

B

A, B and D

C

B, C and D

D

B, D and E

Answer

A, B and D

Explanation

Solution

The correct option is (B) :A, B and D.