MCQs
Total Questions : 10
Answer: Option B. -> 1
Modulus operator gives remainder. So, 22%3 gives the remainder, that is, 1.
Answer: Option A. -> round(45.8)
Execute help(round) in the shell to get details of the parameters that are passed into the round function.
Answer: Option C. -> 3
First this expression will solve 1**3 because exponential have higher precedence than multiplication, so 1**3 = 1 and 3*1 = 3. Final answer is 3.
Answer: Option A. -> +5
x is equivalent to -(x+1).
Answer: Option A. -> list
List datatype can store any values within it.
Answer: Option B. -> 2.0
Python rounds off numbers away from 0 when the number to be rounded off is exactly halfway through. round(0.5) is 1 and round (-0.5) is -1.
Answer: Option D. -> none of the mentioned
Identifiers can be of any length.
Answer: Option D. -> None of the mentioned
True, False and None are capitalized while the others are in lower case.
Answer: Option D. -> Class
Class is a user defined datatype.
Answer: Option B. -> a b c = 1000 2000 3000
Spaces are not allowed in variable names.