a) 5 b) 0 c) 1 d) 7 Answer: c Explanation: Modulus operator gives the remainder. So, 22%3 gives ...
View QuestionWhich one of these is floor division?
a) % b) // c) / d) none of the above Answer: b Explanation: When both of the operands ...
View QuestionThe expression Int(x) implies that the variable x is converted to integer.
a) True b) False Answer: a Explanation: The expression Int(x) implies that the variable x is converted ...
View QuestionWhat is the maximum possible length of an identifier?
a) 63 characters b) 79 characters c) 31 characters d) none of the above Answer: d Explanation: Identifiers can ...
View QuestionWhat is the output of this expression, 3*1**3?
a) 27 b) 1 c) 9 d) 3 Answer: d Explanation: First this expression will solve 1**3 because exponential ...
View Question
What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
What is the order of precedence in python? i) Parentheses ii) Exponential iii) Multiplication iv) Division v) Addition vi) Subtraction a) ...
View QuestionWhich is the correct operator for power(xy)?
Which is the correct operator for power(xy)? a) X^^y b) X^y c) X**y d) None of the above Answer: ...
View QuestionWhich of the following cannot be a variable?
a) on b) in c) __init__ d) it Answer: b Explanation: in is a keyword.
View QuestionOperators with the same precedence are evaluated in which manner?
a) Right to Left b) Left to Right c) Can’t say d) None of the above Answer: b Explanation: ...
View QuestionWhich one of the following has the same precedence level?
a) Addition and Subtraction b) Addition and Multiplication c) Multiplication, Division and Addition d) Multiplication, Division, Addition and Subtraction ...
View Question