ExamVeda
Login
Home
11
What is the result of "Hello" in "Hello, World!" ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The in operator checks if the first string is a substring of the second string.
12
What does the '//' operator do when used with negative numbers?
Discuss
Answer & Solution
Answer: Option C
Solution:
The // operator performs floor division, rounding down.
13
Which is the correct operator for power(xy)?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
14
Operators with the same precedence are evaluated in which manner?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
15
What is the answer to this expression, 22 % 3 is?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
16
What is the result of len("python") ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The len() function returns the length of a sequence, such as a string.
17
What is the result of the expression 7 % 3 ?
Discuss
Answer & Solution
Answer: Option D
Solution:
The % operator calculates the remainder of the division.
18
What is the order of precedence for the arithmetic operators in Python?
Discuss
Answer & Solution
Answer: Option C
Solution:
The order of precedence is: *, / (highest), +, - (lowest).
19
The expression Int(x) implies that the variable x is converted to integer.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
20
What is the result of 10 / 2 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
Division of two integers results in a floating-point number.