Easy Tech Previous Years Solved Sample Placement Papers
- The output of the program:
x = 3 + 4j
print x, type(x)
(a) 3 + 4j, <type complex>
(b) (3 + 4j) <type ‘complex’>
(c) 3 + 4j <type complex>
(d) (3 + 4j) <type ‘complex’>
(Ans: B) - The output of the program:
s = 'Hello '
print s + s
(a) Hello Hello
(b) 10
(c) False
(d) True
(Ans: A) - Who developed the Python language?
(a) Zim Den
(b) Guido van Rossum
(c) Niene Stom
(d) Wick van Rossum
(Ans: B) - In which year was the Python language developed?
(a) 1995
(b) 1972
(c) 1981
(d) 1989
(Ans: D) - In which language is Python written?
(a) English
(b) PHP
(c) C
(d) All of the above
(Ans: C) - Which one of the following is the correct extension of the Python file?
(a) .py
(b) .python
(c) .p
(d) None of these
(Ans: A) - In which year was the Python 3.0 version developed?
(a) 2008
(b) 2000
(c) 2010
(d) 2005
(Ans: A) - What do we use to define a block of code in Python language?
(a) Key
(b) Brackets
(c) Indentation
(d) None of these
(Ans: C) - Which character is used in Python to make a single line comment?
(a) /
(b) //
(c) #
(d) !
(Ans: C) - Which of the following is not a keyword in Python language?
(a) val
(b) raise
(c) try
(d) with
(Ans: A)