Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

3. How many possible 1-parameter bitwise operators are there with A) 1 parameter

ID: 3672499 • Letter: 3

Question

3. How many possible 1-parameter bitwise operators are there with

A) 1 parameter? (unary operators)

B) 2 parameters? (binary operators)

C) 3 parameters? (trinary operators)

4. Which logical operation is used for masking bits to extract a field?

5. What SPARC instructions are intended to facilitate using bits as flags?

6. How do the results of the srl instruction differ from the sra instruction?

7. Why aren’t BCDs used for general-purpose computing?

8. What is a positional number system?

9. Why are bases 8 and 16 commonly used?

10. What is a word with more than 4 letters that can also be read as a hexadecimal number?

11. Which general base-conversion algorithm is better when A) Working in the destination base B) Working in the source base

12. How is UTF-8 related to ASCII?

Explanation / Answer

3. How many possible 1-parameter bitwise operators are there with

A) 1 parameter? (unary operators):one bitwise operator(complement)

B) 2 parameters? (binary operator):bitwise_and, bitwise-or, bitwise xor, left shift,   right shift(5 operaors)

C) 3 parameters? (trinary operators):NIL

4. Which logical operation is used for masking bits to extract a field?

Answer: BItwise XOR

5. What SPARC instructions are intended to facilitate using bits as flags?

Answer:BPCS(branch on carry set (lessthan or unsigned)

BPPOS-Branch on positive

BPNEG-Branch on Negative

BPVS-Branch on overlfow set

BPVC-Branch on overflow clear

6. How do the results of the srl instruction differ from the sra instruction?

SRA(shift right Arithmetic)rounds the result.

SRL (shift right logical) doesnot rounds the result.

7. Why aren’t BCDs used for general-purpose computing?

BCD is less memory efficient than floating point .

BCD's are not used because they produce result without approximation.

8. What is a positional number system?

In positional number system based on position of a bit in a sequence the value of number is calculated.

9. Why are bases 8 and 16 commonly used?

These are commonly used because conversions to binary and back is easy. These are shorter than

10. What is a word with more than 4 letters that can also be read as a hexadecimal number?

A word with more than 4 letters are prefixed with zero's to form byte.

11.. Which general base-conversion algorithm is better when A) Working in the destination base B) Working in the source base

decimal to binary conversion algrithm is better

a)working with octal is better(destination) than in binary

b)working with octal better than hexadecimal.

12.How is UTF-8 related to ASCII

UTF-8 uses its 8 bits to represent data.

ASCII uses 7 bits to represent data MSB setting to zero.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote