Computer Science 433
Programming Languages
Fall 2014, The College of Saint Rose
Lecture 15: Names and Bindings Wrapup; Data Types
Date: Wednesday, October 22, 2014
Agenda
- Announcements
- midterm take-home portion due now
- Program/Problem Set 7: Names and Data Types [HTML] [PDF] out
- Names and bindings wrapup
- Data types
Lecture 15 Assignment
Due at the start of class, Monday, October 27.
Please submit answers to these questions
in Submission
Box under "LA15" or in hard copy by the
start of our next class. We will discuss these questions at the
start of class, so no late submissions are accepted. Please be sure
that your name is clearly indicated in all submissions.
The readings for next class are Sebesta Chapter 6.
NOTE THE CHANGES HERE FROM WHAT WE SAW IN CLASS - ONLY ONE OF THE
ORIGINAL PROBLEMS REMAINS!
- Given a two's complement, Little Endian architecture, show the
contents of memory needed to store the 32 bit integer -17, located
starting at address 00CCCC00. (3 points)
Address | Contents |
00CCCC00 | |
00CCCC01 | |
00CCCC02 | |
00CCCC03 | |
|
Terminology
- masking
- nested subprogram definitions
- named constants
- manifest constants
- data type
- abstraction
- descriptor
- object
- primitive data type
- most/least significant bit
- endianness
- big endian/little endian/network byte order
- signed magnitude
- excess n
- 1's complement
- 2's complement
- floating-point representations
- scientific notation
- mantissa
- exponent
Examples