# What will be the output of the following Python code def f(x): print("outer") def f1(a): print("inner") print(a,x) f(3) f1(1)

1.  outererror

2.  inner error

3.  outerinner

4.  error

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def f1(): x=15 print(x) x=12 f1()

1.  Error

2.  12

3.  15

4.  1512

4

15

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def f1(): x=100 print(x) x=+1 f1()

1.  Error

2.  100

3.  101

4.  99

4

100

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def san(x): print(x+1) x=-2 x=4 san(12)

1.  13

2.  10

3.  2

4.  5

4

13

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def f1(): global x x+=1 print(x) x=12 print("x")

1.  Error

2.  13

3.  13x

4.  x

4

x

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def f1(x): global x x+=1 print(x) f1(15) print("hello")

1.  error

2.  hello

3.  16

4.  16hello

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def f1(x): global x x+=1 print(x) f1(15) print("hello")

1.  error

2.  hello

3.  16

4.  16hello

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x=12 def f1(a,b=x): print(a,b) x=15 f1(4)

1.  Error

2.  12 4

3.  4 12

4.  4 15

4

4 12

Explanation :
No Explanation available for this question

# What will be the output of the following Python code def f(): global a print(a) a = "hello" print(a) a = "world" f() print(a)

1.  hellohello world

2.  world hellohello

3.  helloworldworld

4.  worldhelloworld

4

world
hello
hello

Explanation :
No Explanation available for this question

1.  [3,2,4]

2.  [2,3,4]

3.  Error

4.  [3,4,2]

4