ExamVeda
Login
Home
21
What is the result of `(4 | 2) & 6` ?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
22
What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)?
[] or {}
{} or []
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
23
What is the result of `(8 >> 2) | (1 << 2)` ?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
24
What is the result of True & False ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The & operator performs bitwise AND on the boolean values, resulting in False.
25
Which of the following expressions results in an error?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
26
What will be the output of the following Python code snippet if x=1?
x<<2
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
27
What is the result of `True | False` ?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
28
What is the value of the following Python expression?
bin(0x8)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
29
What will be the value of the following Python expression?
bin(10-2)+bin(12^4)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
30
What is the result of `5 << 1 | 2 >> 1` ?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board