ExamVeda
Login
Home
41
What is the result of not True ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The not operator negates the boolean value, resulting in False.
42
What will be the output of the following Python code?
['f', 't'][bool('spam')]
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
43
What will be the output of the following Python expression?
0x35 | 0x75
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
44
What is the result of ~(7 ^ 2) ?
Discuss
Answer & Solution
Answer: Option C
Solution:
The ~ and ^ operators are evaluated from left to right.
45
What will be the output of the following Python expression if x=15 and y=12?
x & y
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
46
What is the result of 5 ^ 5 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
The XOR operation with the same number results in 0.
47
What will be the output of the following Python expression?
int(1011)?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
48
What will be the output of the following Python expression?
bin(29)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
49
To find the decimal value of 1111, that is 15, we can use the function:
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
50
What is the result of 9 ^ (5 & 3) ?
Discuss
Answer & Solution
Answer: Option C
Solution:
The ^ and & operators are evaluated from left to right.