CS 152 - Programming
Paradigms [MIDTERM 1]
(T/F) The earliest computers were reprogrammable. - ANSFalse -- they
executed a SINGLE, HARDWIRED program.
After machine language, a little better language was... - ANSassembly
language
In assembly, how were programs typed and read? (4 parts -- typed, read,
assembled, loaded) - ANS- typed: using the keypunch machine onto a card
- read: card reader read the punched card into memory
- assembler: translated assembly language program to machine code
(binary, 0 and 1)
- loader: loaded the machine code into computer memory
John von Neumann believed that computers should be... - ANSpermanently
hardwired with a small set of GENERAL PURPOSE operations -- operators
would input a series of binary codes to organize the basic operations to solve
more specific problems, and flip switches to enter these codes (machine
language) into memory
Machine language consists of... - ANSopcode - first 4 bits
operands - next 12 bits; they can be register numbers and memory locations
Machine language is comprised of which 2 digits for binary code? - ANS0 and
1
The Atanasoff-Berry computer could only... - ANSsolve linear equations