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

35 views9 pages
31 Jan 2019
Professor

Document Summary

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. Explain why natural languages cannot be used as programming languages? (1 point) 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 25 and -25 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: 10010110 and (not(10111010), 1001 or (1010 or 0001) Represent the decimal 6. 125 in this fixed point notation. Convert the decimal value -11. 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