ExamVeda
Login
Home
51
What is the result of not (10 > 5) ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The not operator returns the opposite of its operand's boolean value.
52
What is the result of not (3 < 5) ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The not operator returns the opposite of its operand's boolean value.
53
What is the result of `12 | 10 & 9` ?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
54
It is not possible for the two's complement value to be equal to the original value in any case.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
55
Bitwise . . . . . . . . gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
56
What is the result of 5 & 6 ^ 6 ?
Discuss
Answer & Solution
Answer: Option C
Solution:
The & and ^ operators are evaluated from left to right.
57
What is the result of 12 >> 2 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The >> operator performs right shift, shifting the bits to the right.
58
What is the result of `10 & 5 | 5` ?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
59
What will be the output of the following Python code?
class Truth:
	pass
x=Truth()
bool(x)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
60
What will be the output of the following Python expression?
~100?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board