1.  120

2.  Nothing is printed

3.  Error, method factorial doesn’t exist in math module

4.  Error, the statement should be: print(factorial(5))

4
Correct Answer :

Error, the statement should be: print(factorial(5))


Explanation :
No Explanation available for this question

1.  Python first searches the global namespace, then the local namespace and finally the built-in namespace

2.  Python first searches the local namespace, then the global namespace and finally the built-in namespace

3.  Python first searches the built-in namespace, then the global namespace and finally the local namespace

4.  Python first searches the built-in namespace, then the local namespace and finally the global namespace

4
Correct Answer :

Python first searches the local namespace, then the global namespace and finally the built-in namespace


Explanation :
No Explanation available for this question

1.  3

2.  4

3.  4.0

4.  3.0

4
Correct Answer :

4


Explanation :
No Explanation available for this question

1.  3

2.  4

3.  4.0

4.  3.0

4
Correct Answer :

3


Explanation :
No Explanation available for this question

1.  1

2.  1.0

3.  -3

4.  -3.0

4
Correct Answer :

-3.0


Explanation :
No Explanation available for this question

1.  -3.4

2.  3.4

3.  3

4.  -3

4
Correct Answer :

3.4


Explanation :
No Explanation available for this question

1.  sometimes

2.  always

3.  never

4.  none of the mentioned

4
Correct Answer :

sometimes


Explanation :
No Explanation available for this question

1.  720

2.  6

3.  [1, 2, 3, 6]

4.  error

4
Correct Answer :

error


Explanation :
No Explanation available for this question

1.  0

2.  1

3.  error

4.  none of the mentioned

4
Correct Answer :

1


Explanation :
No Explanation available for this question

1.  24

2.  1

3.  error

4.  none of the mentioned

4
Correct Answer :

24


Explanation :
No Explanation available for this question

Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python