CSC 156 Spring 2025 - Homework 7 (100 pts. total)
Assigned Mon Mar 24, due Mon Mar 31
BEFORE STARTING THIS ASSIGNMENT:
Before starting the exercises given below for each section, please make sure to read each section and check your understanding (by doing the participation exercises and those additional exercises with answers provided).
FOR ALL QUESTIONS IN THIS ASSIGNMENT:
Answer each question. *Make sure to justify your answer for all questions. Do NOT just state the answer.*
THE ASSIGNMENT:
[15 pts.] Question 1: Express the hexadecimal number 2B3 in binary and in decimal.
[15 pts.] Question 2: Express the hexadecimal number 1AFD in decimal.
[15 pts.] Question 3: Express the decimal number 361 in hexadecimal and in binary.
[10 pts.] Question 4: Convert each binary number into hexadecimal: a) 101011 b) 100100111111
[20 pts.] Question 5: In the RGB color system, a shade of dark green can be made using red = 0, green = 60, and blue = 20.
a) Express this as a 3-byte binary number.
b) Express this as a hexadecimal number.
[25 pts.] Question 6: Calculate the value of the following bitwise operations:
a) !10100
b) 10001 & 01011
c) 10001 ^ 01011
d) 01011 << 3
e) 01011 >> 3
Last Modified: 3/23/25