ExamVeda
Login
Home
11
The one's complement of 110010101 is:
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
12
What will be the output of the following Python code snippet?
not(10<20) and not(10>30)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
13
What is the result of not (3 > 5) ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The not operator returns the opposite of its operand's boolean value.
14
What is the result of not (True or False) ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The not operator negates the boolean value, resulting in False.
15
What is the result of `5 & 9 | 1` ?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
What is the two's complement of -44?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
17
Any odd number on being AND-ed with . . . . . . . . always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
18
What will be the output of the following Python code snippet?
not(3>4)
not(1&1)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
19
What will be the output of the following Python code?
l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
20
Which of the following Boolean expressions is not logically equivalent to the other three?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board