A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. The bitwise OR of 35 with 7 in C will be:
a. 35
b. 7
c. 42
d. 39
kapi :(August 24, 2019) please give me explanation
Click to Add Comment

Anagh R K :(April 26, 2020) Find out the Binary equivalent of both 35 and 7. Then Apply OR operation

Binary of 35 = 100011
Binary of 7 =111
We need to add 3 more zeros to 111 (to equivalent with positions) Then apply OR operation


Find out the Decimal equivalent of 100111 = 39.
Click to Add Comment

Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here