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