Question 1 of 25
Hints left: 3
Q1
What is the result of the expression 7 % 3 ?
Q2
What is the result of len("python") ?
Q3
Which is the correct operator for power(xy)?
Q4
What is the order of precedence for the arithmetic operators in Python?
-
A
-
B
-
C
-
D
Q5
Which of the following is a valid variable name in Python?
Q6
What is the result of 'True or False' ?
Q7
What are the values of the following Python expressions? 2**(3**2) (2**3)**2 2**3**2
Q8
What does the 'in' operator do in Python?
Q9
The expression Int(x) implies that the variable x is converted to integer.
Q10
What will be the output of the following Python code snippet if x=1? x<<2
Q11
What will be the output of the following Python code? print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
Q12
What does the '//' operator do when used with negative numbers?
Q13
Operators with the same precedence are evaluated in which manner?
Q14
What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp = tester(12) >>>print(temp.id)
Q15
What does the 'not in' operator do in Python?
Q16
What is the answer to this expression, 22 % 3 is?
Q17
Which operator is used for exponentiation in Python?
Q18
What is the result of "Hello" in "Hello, World!" ?
Q19
What is the maximum possible length of an identifier?
Q20
What is the assignment operator in Python?
Q21
What will be the output of the following Python expression? round(4.576)
Q22
Which of the following Python statements will result in the output: 6? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Q23
What is the result of 'True and False' ?
Q24
What is the result of 'not True' ?
Q25
Which of the following is not a keyword?