# What will be the output of the following Python code L = [lambda x: x ** 2, lambda x: x ** 3, lambda x: x ** 4] for f in L: print(f(3))

1.  2781343

2.  6912

3.  92781

4.  None of the mentioned

4

9
27
81

Explanation :
No Explanation available for this question

# What will be the output of the following Python code min = (lambda x, y: x if x < y else y) min(101*99, 102*98)

1.  9997

2.  9999

3.  9996

4.  None of the mentioned

4

9996

Explanation :
No Explanation available for this question

# What is a variable defined outside a function referred to as

1.  A static variable

2.  A global variable

3.  A local variable

4.  An automatic variable

4

A global variable

Explanation :
No Explanation available for this question

# What is a variable defined inside a function referred to as

1.  A global variable

2.  A volatile variable

3.  A local variable

4.  An automatic variable

4

A local variable

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i=0 def change(i): i=i+1 return i change(1) print(i)

1.  1

2.  Nothing is displayed

3.  0

4.  An exception is thrown

4

0

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def a(b): b = b + [5] c = [1, 2, 3, 4] a(c) print(len(c))

1.  4

2.  5

3.  1

4.  An exception is thrown

4

4

Explanation :
No Explanation available for this question

# What will be the output of the following Python code a=10 b=20 def change(): global b a=45 b=56 change() print(a) print(b)

1.  1056

2.  4556

3.  1020

4.  Syntax Error

4

10
56

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def change(i = 1, j = 2): i = i + j j = j + 1 print(i, j) change(j = 1, i = 2)

1.  An exception is thrown because of conflicting values

2.  1 2

3.  3 3

4.  3 2

4

3 2

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def change(one, *two): print(type(two)) change(1,2,3,4)

1.  Integer

2.  Tuple

3.  Dictionary

4.  An exception is thrown

4

Tuple

Explanation :
No Explanation available for this question

# If a function doesn’t have a return statement, which of the following does the function return

1.  int

2.  null

3.  None

4.  An exception is thrown without the return statement

4