{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

assignment1

# assignment1 - CSCI 2021 Spring 2010 Written Assignment#1...

This preview shows pages 1–2. Sign up to view the full content.

CSCI 2021, Spring 2010 Written Assignment #1 Instructions: Due Thursday, February 18 in your discussion section. Turn in a hard copy of your work. Write down your full name, ID, and section number in print on your homework paper The problems cover material from Ch. 2 of the text book, lectures, and discussions. There are seven problems. We will grade all of them. The textbook in this context is: R. Bryant, D. O'Hallaron, Computer Systems: A Programmer's Perspective . Prentice Hall, 2003 Problem 1. [20 Points]: Textbook Problem 2.46 on page 101 ( or 2.48 on page 102). Problem 2. [10 Points]: Given two's complement representation, what is the value of: a) ~x + 1 b) ~(x - 1) Problem 3. [20 Points]: For each of the following propositions, indicate if they are true or false. If false, give a counter example. We assume that the variables are declared as follows: int x, y; unsigned u; and initialized to some unknown value. You should formulate your counterexamples in terms of the word size w . We have given the first answer as an example.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

assignment1 - CSCI 2021 Spring 2010 Written Assignment#1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online