Computer Science 202
Introduction to Programming

Fall 2012, The College of Saint Rose

Lecture 2: Binary and Hexadecimal Representations
Date: Thursday, August 30, 2012

Agenda

Lecture Assignment 2

Due at the start of class, Tuesday, September 4, 2012.

Please submit answers to these questions in Blackboard by the start of class. We will discuss these questions at the start of class, so no late submissions are accepted.

  1. Please fill in the missing entries in the following table, or state that a given entry is impossible (i.e., the number does not fit in the number of digits specified). (5 points total)

    Decimal

    8-bit Binary          16-bit Binary          2-digit Hex 4-digit Hex
    21710
    100101102
    00101100011011102
    A716
    ACED16

  2. What is the largest number that can be represented in 10 decimal digits? 10 binary digits? 10 hexadecimal digits. Please give all answers in the specified base as well as decimal. (3 points)

Examples

Links