Quiz 9.1

DIRECTIONS: Read each question carefully. Then click on the dot next to the answer that most closely fits the question. Try to answer all questions on this quiz and when you are done, click on the grade me button at the bottom.


Coverage: Sections 9.1 through 9.3

  1. What was the first modern high level language?
Java
Ada
C
FORTRAN
COBOL

  1. In what year did this first high level language appear?
1949
1957
1968
1975

  1. What does mnemonic mean?
easy to remember
easy to write down
evil and sinister
dealing with numerical roots, like phonemic

  1. Which file contains executable instructions?
source file
object file
listing file
archive file

  1. What good is a listing file?
it displays all the machine instructions so that you can be sure the compiler or assembler translated your program into what you expected
it traces through the program and displays possible execution paths allowing you to find all bugs in your programming logic
it shows all potential mistakes in your program
it contains a copy of the original source program with line numbers and showing the memory addresses

Questions 6 and 7 deal with the following CSC-1 assembler program and the raw binary that corresponds to it:
          0000     0000     0000     0100         4           LOD     A
          0011     0000     0000     0101     12293           ADD     B
          0001     0000     0000     0110      4102           STD     C
          1111     1001     0000     0000     63744           HLT
          0000     0000     0000     0101         5     A:    NUM     5
          0000     0000     0000     0111         7     B:    NUM     7
          0000     0000     0000     0000         0     C:    NUM     0

  1. What is the opcode of ADD in the CSC-1?
1111
0001
0011
0000

  1. Which instruction has an 8-bit opcode?
ADD
HLT
LOD
STD

  1. If you were peeking into the CSC-1's memory and saw the decimal number 4102 in a particular memory word, how would you know this was an STD instruction and not the integer number 4102, to be used as data?
you wouldn't, there is no way to tell by looking at only one memory cell
if the memory word were in the low end of memory it would undoubtedly be an STD instruction because that is where programs are put
there is a special 1 bit in front of each memory cell that is an instruction; this is called a tagged architecture
4102 is larger than the maximum possible integer one can store in a CSC-1 memory cell; all instructions use opcodes that are 2048 and higher

  1. Which of the following statements is true?
There are many similarities between different assembler languages.
No two architectures or processor families have exactly the same instruction set; hence they have different assemblers.
If you master one assembly language, you can easily learn another.
All of the above.

  1. The Java language has been touted as the wave of the future. Which philosophy of compiling and executing does it espouse?
write once run anywhere
write once run once
write twice run anywhere
write many times run anywhere

  1. If your company had just purchased an IBM 360/60 in the late 1960s, which programs could you run on it without change, specifically without reassembling?
CDC 6600
IBM 360/67
IBM 360/30
DEC PDP-1

  1. What does a symbolic debugger give you that other debugers do not?
it allows you to reassemble and restart while the program is running
it allows you to refer to the symbolc addresses using the same labels as were in the original program
it is really an interpreter so you do not have to assemble before you start execution
it keeps track of tracing the program for you so you can quickly find misplaced program logic

  1. Suppose the binary number 1111111111111111 (16 ones) appears inside a memory word of the CSC-1. This represents...
-1
65535
either, depending on which instruction deals with it