You are on page 1of 1

Homework # 5

1. Simplify the following:


X AND 1 = ?
X OR 1 = ?
Y XOR 1 = ?
(XY)’ + X’Y= ? (x’ is the complement of x)

2. A= 01010101 B= 10110111
A AND B = ?
A XOR B = ?
Logical right shift B = ?
Arithmetic right shift B = ?
A+B=?
A–B=?
A+A=?
B–A=?
3. Exclusive OR operation is applied in WiFi WEP protocol for encrypting a plaintext
to cypher, which is transmitted to the receiver. After receiving the cypher, the
receiver uses the exclusive OR operation to decrypt the cypher to get the
plaintext. Please show the above scheme with:
Plaintext P= 1010110010100010 KEY = 1111000011110101

4. In a computer network, router takes the destination IP address from the


incoming packet then does the AND operation with the mask to get network
prefix. Please show what does the router get from :
destination IP address, 140.120.150.128,
and mask is 255.255.240.0.

5. Specify the function of the following commands:


>Route print
>Tracert www.ntu.edu.tw

6. Please show the floating point 15.75 – 110.625 with 32-bit single precision.

You might also like