UMBC CMSC104 CSEE | CMSC104 | CMSC104 Fall99 | news | help

UMBC CMSC104 -- Fall99

Problem Solving and Computer Programming

Section 701

Review Questions, Lecture 6


Stored Programs

  1. The ___ is the computer's mechanism for performing operations on data and coordinating the sequence of these operations.

  2. The CPU consists of two main parts: the ______ ______ unit and the _______ unit.

  3. Which of the following statements about CPU registers are not true
    1. Registers are temporary memory inside the CPU.
    2. Registers are used to hold partial results and CPU control data.
    3. Registers are accessed via special lines on the memory buss.
    4. Registers are often specialized, with special registers designed for special functions.
    5. Registers are very fast.

  4. Indicate which of the following functions are performed by a CPU control unit and which by the arithmetic logic unit.
    1. Keeps track of location of current instruction
    2. Fetchs instructions from memory
    3. Decodes instruction
    4. Loads registers with data
    5. Keeps track of free registers
    6. Instructs ALU which operations are required.
    7. Executes arithmetic and logic instructions from Control Unit.

  5. Two memory cells have the following contents, [M1] = 3, [M2] = 5. If we copy from M1 to M2, show the contents of each cell after the operation.

  6. Execution of a program begins with the _____ machine language instruction of the program.

  7. Match the term in column 1 with the correct definition in column 2.
     

    Column 1

     

    Column 2

    1Executea specifies an operation, like LOAD, ADD, JUMP or STORE
    2Instruction Registerbprovides more information about the instruction.
    3Fetchc Contains the instruction currently being executed
    4Decoded Contains the memory address of the next instruction to be executed.
    5opcodeeget the next instruction from memory
    6operandfdetermine the bit pattern in the instruction register
    7Program countergperform the action requested by the instruction in the instruction register.

  8. During program execution the control unit continuously repeats this 3-step cycle
    1. prime, align, run
    2. fetch, decode, execute
    3. factor, cofactor, resolve
    4. read, run, write
    5. load, analyze, export
    6. dilithium crystals

      1. Write out the truth tables for
        1. or
        2. and
        3. exclusive or


        UMBC CMSC104 CSEE | CMSC104 | CMSC104 Fall99 | news | help