Binary And Hexadecimal Numeration And Logical Operations Worksheet - Object Oriented Programming In Java, Marian Manyo Page 12

ADVERTISEMENT

J A V A
L A B
M A N U A L
E x e r c i s e 1 . 9
A. What is the result when AND is applied to these bytes?
10101010
AND 11110000
G e n e r a l i z e : If
is a bit, that is, either 0 or 1, then
is _______ and
is _________
x
x AND 0
x AND 1
B. What is the result when OR is applied to these bytes?
10101010
OR 11110000
G e n e r a l i z e : If
is a bit, that is, either 0 or 1, then
is _______ and
is _________
x
x OR 0
x OR 1
C. What is the result when XOR is applied to these bytes?
10101010
XOR 11110000
G e n e r a l i z e : If
is a bit, that is, either 0 or 1, then
is _______ and
is _________
x
x XOR 0
x XOR 1
P A G E 1 . 1 2
M A R I A N M A N Y O , M A R Q U E T T E U N I V E R S I T Y

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education