ExamVeda
Login
Home
31
Which of the following cannot be a variable?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
32
Why are local variable names beginning with an underscore discouraged?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
33
What is the result of 10 // 3 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The // operator performs floor division, resulting in the quotient without the fractional part.
34
What is the result of the expression 5 // 2 ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The // operator performs floor division, resulting in the quotient without the fractional part.
35
What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
36
Mathematical operations can be performed on a string.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
37
What is the result of 3 ** 2 ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The ** operator performs exponentiation, so 3 raised to the power of 2 is 9.
38
What does the is operator test for?
Discuss
Answer & Solution
Answer: Option B
Solution:
The is operator tests whether two variables refer to the same object in memory.
39
What is the value of x after the following code: x = 5; x += 3; ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The += operator adds the right operand to the left operand and assigns the result to the left operand.
40
What is the type of the result when you add an integer and a floating-point number?
Discuss
Answer & Solution
Answer: Option B
Solution:
Adding an integer and a floating-point number results in a floating-point number.