UGC NET CS 2004 Dec-Paper-2
March 31, 2024
Question 3118 – Environment
March 31, 2024
UGC NET CS 2004 Dec-Paper-2
March 31, 2024
Question 3118 – Environment
March 31, 2024

Question 3878 – UGC NET CS 2004 Dec-Paper-2

Suppose x and y are two Integer Variables having values 0x5AB6 and 0x61CD respectively. The result (in hex) of applying bitwise operator and to x and y will be :

Correct Answer: B

Question 11 Explanation: 
Given two integer numbers are 0x5AB6 and 0x61CD
Step-1: Convert hexadecimal numbers into binary number because we want to perform AND operation.
0x5AB6 equivalent into binary number is 0101 1010 1011 0110
0x61CD equivalent into binary number is 0110 0001 1100 1101
Step-2: Perform Bitwise AND operation
0101 1010 1011 0110
0110 0001 1100 1101
—————————–
0100 0000 1000 0100(Bitwise AND operation)
——————————
Step-3: Convert result into hexadecimal number.
0100 0000 1000 0100 equivalent into hexadecimal number is 0x4084
A
0 x 5089
B
0 x 4084
C
0 x 78A4
D
0 x 3AD1
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!!