ADITYA CODING CLUB
Aditya College of Engineering, Madanapalle
Python Programming Test-7
1. Test contains 10 Questions 
2. All questions are asked from function concept
3. Each Question Carries 1 Mark
Roll Number: *
Type Valid Roll Number 
Name of the Student: *
Department *
Year of Course: *
Required
Section  *
1. What will be the output of the following code?
def test(name, age=20):
    print(name, age)

test('Ajay', 25)
*
1 point
2. What is the output of the following code?
def outer_fun(x, y):
    def inner_fun(m, n):
        return m + n

    return inner_fun(x, y)
    return x

result = outer_fun(15, 10)
print(result)
*
1 point
3. What value will be printed for the code below?

z = lambda x : x * x * 5
print(z(6))
*
1 point
4. What is the output of the following code?
def add(x, y):
    return x+10, y+10

result = add(5, 10)
print(result)

*
1 point
5.  def display(**kwargs): for i in kwargs: print(i) display(emp="Kelly", salary=9000) *
1 point
6. What is the output of the following code?
def outer_fun(a, b): def inner_fun(c, d): return c + d return inner_fun(a, b) res = outer_fun(5, 10) print(res)
*
1 point

7. What is the output of the add() function call

def add(a, b): return a+5, b+5 result = add(3, 2) print(result)
*
1 point
8. What is the output of the following code?
name = "Gopal"
def Funct(parameter):
    value = "First"
    value = parameter
    print (value)
Funct("Krishna")
*
1 point
9.  What is the output of the following code?
def rem(a, b):
    return a % b

print(rem(7,9))
*
1 point
10. What is a recursive function?
*
1 point
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy