Question 9226 – GATE 2007
November 10, 2023
Question 7788 – Algorithms
November 10, 2023
Question 9226 – GATE 2007
November 10, 2023
Question 7788 – Algorithms
November 10, 2023

Question 4075 – UGC NET CS 2005 Dec-Paper-2

The bitwise OR of 35 with 7 in C will be :

Correct Answer: D

Question 12 Explanation: 
Step-1: First we have to convert into binary numbers
(35)​ 10​ = (​ 0010 0011​ ) ​ 2
(7)​ 10​ = (0000 0111)​ 2
Step-2: Perform OR operation on both binary numbers.
0010 0011
0000 0111
—————
0010 0111
—————-
Step-3: Convert result into Decimal number
(0010 0111)​ 2​ = (39)​ 10
A
35
B
7
C
42
D
39
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!