Computer architecture Flashcards
(34 cards)
what does the mantissa store
The precision of the number
what is 11101011
215
what is 127 in binary code
01111111
what does the exponent store
the range of the number
if you had the number 6.0968796876897 x 10 to the power of 17 what would the exponent be
17
if you had the 6.0968796876897 x 10 to the power of 17 what would the mantissa be
6.0968796876897
Describe how extended ASCII code (8-bit) is used to represent characters.
Each character is given an 8-bit ASCII Code.
how do vector graphic photos store pictures
Vector graphics store a picture by storing each objects attribute
how is a rectangle stored using vector graphics
height, width, x, y, fill colour, line colour
how is an ellipse stored using vector graphics
cx, cy, rx, ry, fill colour, line colour
how is a line stored using vector graphics
x1, y1, x2, y2, line colour
how is a polygon stored using vector graphics
x1, y1, x2, y2, x3, y3, fill colour, line colour
how are bit mapped photos stored
in binary each pixel in a 2d grid the Number of bits per pixel depends on the number of colours in the image
what is the purpose of the control unit
controls the sequencing of fetching, decoding and executing instructions.
what is the purpose of the arithmetic logic unit (ALU)
performs all calculations and logical operations
what is the purpose of registers
temporarily stores memories within the processor
why are memory locations given a unique address within RAM
so that the computer can read and write data to that location correctly
what are the two different types of buses
Address bus and Data bus
what is the function of the Address bus
this identifies the memory location that is going to read from or written to.
What is the data bus
the transfers data between the memory and the memory and vice-versa
what are the two types of translators used to translate high level language to binary
compiler and interpreter
how does an interpreter translate High Level Language to computer code
translates the program one line at a time into machine code and executes immediately. Machine code is not retained, so must be translated each time.
how does a compiler translate High Level Language to computer code
translate whole program, and then save machine code version. Translate code can be run again, and again.
what is a compiler good for
translating programs that are already ready for release