ExamVeda
Login
Home
41
What is the result of 2 ** 3 ** 2 ?
Discuss
Answer & Solution
Answer: Option B
Solution:
Exponentiation is right-associative, so the expression is evaluated as 2 ** (3 ** 2), which is 512.
42
Which one of the following has the highest precedence in the expression?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
43
Which operator is used to concatenate strings in Python?
Discuss
Answer & Solution
Answer: Option B
Solution:
The + operator is used to concatenate strings in Python.
44
Which one of these is floor division?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
45
What is the output of print("Hello" + " " + "World") ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The + operator concatenates the strings.
46
What does the != operator mean in Python?
Discuss
Answer & Solution
Answer: Option C
Solution:
The != operator checks if two values are not equal.
47
Which of the following is an invalid statement?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board