iNeuron Day 12 python interview questions
iNeuron Day 12 python interview questions
print(a+b+c)
print(a+b*c+d)
print(a/b+c/d)
print(a+b*c+a/b+d)
Ans-
Page 2 of 9
iNeuron Intelligence Pvt Ltd
Equal
x=y
True if x is equal to y.
>
Greater than
x>y
<
Less than
x<y
>=
x >= y
<=
x <= y
!=
Not equal to
x != y
3. a = 5, b = 6, c = 7, d = 7
What will be the outcome for the following:
1. a <=b>=c
2. -a+b==c>d
3. b+c==6+d>=13
Ans-
Page 4 of 9
iNeuron Intelligence Pvt Ltd
Answer. b. There are a lot of languages which have been implemented using
both compilers and interpreters, including C, Pascal, as well as python.
Answer. b. 16 October 2000. The idea of Python was conceived in the later
1980s, but it was released on a. 16 October 2000.
Answer. a. The new version of Python 3.0 was released on December 3, 2008.
Page 5 of 9
iNeuron Intelligence Pvt Ltd
Answer. d. The idea of Python was conceived by Guido van Rossum in the later
1980s.
9. What is Python?
1. A programming language
2. Computer language
3. Binary language
4. None of the above
Answer. a. Python is a programming language, basically a very high-level and a
general-purpose language.
Answer. b. The correct extension of python is .py and can be wrilen in any text
editor. We need to use the extension .py to save these files.
Answer. d. Only True, False and None are capitalized and all the others in lower
case.
17. Which of the following defini.ons is the one for packages in Python?
1. A set of main modules
2. A folder of python modules
3. Set of programs making use of python modules
4. Number of files containing python defini.ons and statements
18. What is the order in which namespaces in Python looks for an iden.fier?
1. First, the python searches for the built-in namespace, then the global
namespace and then the local namespace
2. Python first searches for the built-in namespace, then local and finally
the global namespace
3. Python first searches for local namespace, then global namespace and
finally the built-in namespace
Page 8 of 9
iNeuron Intelligence Pvt Ltd
Answer. C. Python first searches for the local namespace, followed by the
global and finally the built-in namespace.
Page 9 of 9