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