CSC 156 Spring 2025 - Homework 5 (100 pts. total)
Assigned Mon Mar 3, due Mon Mar 10


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 EVERY question. Do NOT just state the answer.*

THE ASSIGNMENT:
I. Section 3.1 Exercises
  • [10 pts.] Question 1: Calculate each of the following: 28 // 5, 28 % 5
  • [10 pts.] Question 2: Calculate each of the following: 7 * 9 mod 4, 7 + 9 mod 4
  • [30 pts.] ZyBook Additional Exercises #1f,2b,5b

    II. Section 3.2 Exercises
  • [ 5 pts. ] Question 1: What is the next higher 3-digit binary number after 1012?
  • [ 5 pts. ] Question 2: How many bits are required to represent the decimal number 200?
  • [10 pts.] Question 3: Convert the binary number 11011001 to decimal.
  • [10 pts.] Question 4: Convert the decimal number 47 to binary.
  • [10 pts.] Question 5: Express the sum of the binary numbers 10110011 and 1010110 as a binary number.
  • [10 pts.] Question 6: Multiple Choice: Which of the following sums of 3-digit binary numbers generates overflow? Explain your choice.
                   (A) 1012 + 0012      (B) 1002 + 1102      (C) 1002 + 0112



    Last Modified: 3/2/25