Answer the following:
a. byte a = 10, b = 6;
byte c = a ^ c;
What is the value of a?
b. byte a = 12, b = 6;
byte c = a ^ b;
What is the value of c?
Part a.)
(Assuming that the operation is not c = c^a as per the problem, as
this will give an error as the initial value of c has not been
defined)
Binary Representation
Value of a = 1 0 1 0
Value of b = 0 1 1 0
--------------------------
Value of c = 1 1 0 0
[c = a^b (^ - Bitwise XOR operation)]
Therefore as per XOR table shown above c = 1100
Hence value of c is 12 in PART a.)
Part b.)
Binary Representation
Value of a = 1 1 0 0
Value of b = 0 1 1 0
--------------------------
Value of c = 1 0 1 0
[c = a^b (^ - Bitwise XOR operation)]
Therefore as per XOR table shown above c = 1010
Hence value of c is 10 in PART b.)
Problem #6 (Conversions) Given the following base 10 decimals a) 3.75 b) 0.3 c) 89.7 1) Convert to binary, octal and hex, then 2) Convert to NASA Hex float with first 24 bits representing thesigned fraction and the last 8 bits representing thesigned exponent. Scaled as 0.FRACTION x 2^EXPONENT 3) convert a) to scaled integer binary 1 unsinged byte maxium bits,convert b) to scaled integer binary 2 unsinged byte maxium bits,convert c) to scaled integer binary 3 unsinged byte maxium...
Line 1 Set index 2-way set associative cache Line 0 Tag Valid Byte 0 Byte 1 Byte 2 Byte 3 Tag Valid Byte 0 Byte 1 Byte 2 Byte 3 091 86 30 3F 10 000 - 45 1 604FEO 23 38 1 00 BC OB 37 EB 0 OB 0 - 06 0 32 1 12 08 7B AD c 06 78 07 06 05 1 40 67 C2 3B 711 6E 0 911 AO B7 26 2DFO 0...
Consider the byte address 0x002468ac. What is the value shifted to the right by 6 bits? (That is, what is the block address corresponding to this byte address when using 64-byte blocks?)
Java Quiz Which of the following are the wrapper classes? A. Random B. Vector C. Byte D. all of the above
The Byte of Accounting Corporation (Byte) sells turn-key computer systems to midsize businesses on account. Byte was started by Lauryn on January 1 of last year when she was issued 2,200 shares of stock. - Perpetual FIFO will be used for the Super Toners. - The allowance method is used to account for bad debts. Transaction 01: December 1: an investor made an investment in Byte by purchasing 2,700 shares of its common stock paying $72,900 in cash. The par...
The Byte of Accounting Corporation (Byte) sells turn-key computer systems to midsize businesses on account. Byte was started by Lauryn on January 1 of last year when she was issued 2,200 shares of stock. - Perpetual FIFO will be used for the Super Toners. - The allowance method is used to account for bad debts. Transaction 01: December 1: an investor made an investment in Byte by purchasing 2,700 shares of its common stock paying $72,900 in cash. The par...
The Byte of Accounting Corporation (Byte) sells turn-key computer systems to midsize businesses on account. Byte was started by Lauryn on January 1 of last year when she was issued 2,200 shares of stock. - Perpetual FIFO will be used for the Super Toners. - The allowance method is used to account for bad debts. Transaction 01: December 1: an investor made an investment in Byte by purchasing 2,700 shares of its common stock paying $72,900 in cash. The par...
What is wrong with the following line of assembly language code? total BYTE 10
What is the size of byte variable? A - 8 bit B - 16 bit C - 32 bit D - 64 bit
What is the size of byte variable? A - 8 bit B - 16 bit C - 32 bit D - 64 bit