Docsity

Quiz 4 Problems - Computer Organization and Systems Programming | CSE 30, Quizzes of Computer Science

Toggle sidebar
bg1
Name:
cs30x____
Score:
Quiz 4
CSE 30
Fall 2000
#1.
Put the following in the correct order/sequence using the numbers to the left of each word:
1. compiler
2. loader
3. assembler
4. execution of the program
5. source code
6. linker
7. preprocessor
______ โ€”> ______ โ€”> ______ โ€”> ______ โ€”> ______ โ€”> ______ โ€”> ______
#2.
a) Convert -26.37510 to binary fixed-point and single precision IEEE floating-point representation
(expressed in hexadecimal).
binary fixed-point __________________________________ x 20
IEEE floating-point ______________________________________________________ (hexadecimal)
b) Convert 0x42F68000 (single precision IEEE floating-point representation) to fixed-point decimal.
fixed-point decimal _______________________________________ (decimal / no exponential notation)
#3. Fill in the letter corresponding to the correct answer for each of the following:
A. loader B. linker C. assembler
Resolves address/symbols of external variables and subprograms ________ (2 points)
Generates machine code from assembly language ________ (2 points)
Copies executable binaries on disk to locations in memory for execution ________ (2 points)
Takes .s files as input ________ (2 points)

Partial preview of the text

Download Quiz 4 Problems - Computer Organization and Systems Programming | CSE 30 and more Quizzes Computer Science in PDF only on Docsity!

Name:

cs30x____

Score:

Quiz 4

CSE 30

Fall 2000

Put the following in the correct order/sequence using the numbers to the left of each word:

  1. compiler
  2. loader
  3. assembler
  4. execution of the program
  5. source code
  6. linker
  7. preprocessor

______ โ€”> ______ โ€”> ______ โ€”> ______ โ€”> ______ โ€”> ______ โ€”> ______

#2. a) Convert -26.375 10 to binary fixed-point and single precision IEEE floating-point representation (expressed in hexadecimal ).

binary fixed-point __________________________________ x 2^0

IEEE floating-point ______________________________________________________ ( hexadecimal )

b) Convert 0x42F68000 (single precision IEEE floating-point representation) to fixed-point decimal. fixed-point decimal _______________________________________ ( decimal / no exponential notation)

#3. Fill in the letter corresponding to the correct answer for each of the following: A. loader B. linker C. assembler Resolves address/symbols of external variables and subprograms ________ (2 points) Generates machine code from assembly language ________ (2 points) Copies executable binaries on disk to locations in memory for execution ________ (2 points) Takes .s files as input ________ (2 points)