COMP SCI 252 Midterm: CS 252 UW Madison Fall2014 Exam1C sol

29 views9 pages
31 Jan 2019
Professor

Document Summary

Tas: sujith surendran, lisa ossian, and minsub shin. No: book(s), note(s), or calculators of any sort. Plan your time carefully since some problems are longer than others. Use the blank sides of the exam for scratch work. Label the following items/terms according to their level of abstraction relative to one another. Label the most abstract term as 1 and least abstract as 6. Mention one difference between a high level language and an assembly language? (1 point) Using 8 bits to represent each number, write the representations of 26 and -26 in sign-magnitude and 2"s complement notations. Perform binary arithmetic for the following pairs of 2"s complement numbers. Perform the specified logical operations on the following binary numbers. Express your result in hexadecimal: 00010110 and (not(10011010), 1000 or (1010 or 0101) Represent the decimal 7. 125 in this fixed point notation. Convert the decimal value -12. 25 into its ieee single-precision floating point representation.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents