Easy Tech Previous Years Solved Sample Placement Papers
- Which of the following declarations is incorrect in Python language?
(a) xyzp = 5,000,000
(b) x y z p = 5000 6000 7000 8000
(c) x,y,z,p = 5000, 6000, 7000, 8000
(d) x y z p = 5,000,000
(Ans: b) - Which of the following words cannot be a variable in Python language?
(a) val
(b) val
(c) try
(d) try
(Ans: c) - Which of the following operators is the correct option for power (a^b)?
(a) a ∧ b
(b) a∗∗b
(c) a ∧∧ b
(d) a∧∗ b
(Ans: b) - Which of the following precedence orders is correct in Python?
(a) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
(b) Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
(c) Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
(d) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
(Ans: a) - Which one of the following has the same precedence level?
(a) Division, Power, Multiplication, Addition and Subtraction
(b) Division and Multiplication
(c) Subtraction and Division
(d) Power and Division
(Ans: b) - Output of the program
a = 'Hello' print(a[0])
(a) H
(b) e
(c) l
(d) o
(Ans: a) - Output of the program
a = 'hello world' print(a[3:5])
(a) hel
(b) lo
(c) worl
(d) rl
(Ans: b) - Which type of Programming does Python support?
(a) object-oriented programming
(b) structured programming
(c) functional programming
(d) all of the mentioned
(Ans: d) - Is Python case-sensitive when dealing with identifiers?
(a) no
(b) yes
(c) machine dependent
(Ans: b) - Is Python code compiled or interpreted?
(a) Python code is both compiled and interpreted
(b) Python code is neither compiled nor interpreted
(c) Python code is only compiled
(d) Python code is only interpreted
(Ans: d) - All keywords in Python are in ——
(a) Capitalized
(b) lower case
(c) UPPER CASE
(d) None of the mentioned
(Ans: d) - What will be the value of the following Python expression?
4 + 3
(a) 7
(b) 2
(c) 4
(d) 1
(Ans: a) - Which keyword is used for function in Python language?
(a) Function
(b) Def
(c) Fun
(d) Define
(Ans: b)