CSC 156 Spring 2024 - Homework 5 (100 pts. total)
Assigned Mon Mar 11, due Mon Mar 25


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: 37 // 5, 37 % 5
  • [10 pts.] Question 2: Calculate each of the following: 7 * 5 mod 4, 7 + 5 mod 4
  • [30 pts.] ZyBook Additional Exercises #1b,2a,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 100?
  • [10 pts.] Question 3: Convert the binary number 11101001 to decimal.
  • [10 pts.] Question 4: Convert the decimal number 43 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/10/24