Introduction to Software
- 23Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary reason programmers sought to move beyond hardware-level programming?
What is the primary reason programmers sought to move beyond hardware-level programming?
23 questions
- 1
What is the primary reason programmers sought to move beyond hardware-level programming?
- A
It offered excessive flexibility, making programs difficult to control.
- B
Hardware programming required specialized tools that were hard to acquire.
- C
Hardware-level programming was too simple and unchallenging for experts.
- D
Programming at the hardware level was cumbersome and lacked versatility.
Correct answer
DProgramming at the hardware level was cumbersome and lacked versatility.
Explanation
The content states that 'programming at the hardware level is cumbersome and inflexible, so programmers wanted a more versatile way to program computers'. This indicates that cumbersomeness and inflexibility were the main drivers for seeking 'softer' programming mediums.
- A
- 2
Which of the following best describes Machine Language or Machine Code?
- A
It is a high-level language used for early programming on mainframe computers.
- B
It is a human-readable language understood by all computers.
- C
It is the raw, binary instruction set that computer processors natively speak.
- D
It is an abstract language that works across different hardware architectures.
Correct answer
CIt is the raw, binary instruction set that computer processors natively speak.
Explanation
The text explains, 'computer hardware can only handle raw, binary instructions. This is the 'language' computer processors natively speak. In fact, it’s the only language they’re able to speak. It’s called Machine Language or Machine Code.'
- A
- 3
What was the initial method for programming computers using machine code?
- A
Programmers directly spoke commands into a microphone for translation.
- B
Programs were written in high-level languages and then compiled automatically.
- C
High-level ideas were written as pseudo-code and then manually translated to binary.
- D
Assemblers automatically converted mnemonic instructions into binary code.
Correct answer
CHigh-level ideas were written as pseudo-code and then manually translated to binary.
Explanation
The content describes the early process: 'they’d first write a high-level version of a program on paper, in English... then... they’d painstakingly expand and translate it into binary machine code by hand, using things like opcode tables.' This high-level description was called Pseudo-Code.
- A
- 4
What is an OPCODE in the context of CPU instructions?
- A
It represents a human-readable label for a specific memory address.
- B
It specifies the memory location for data storage within the CPU.
- C
It is the first four bits of an instruction indicating the operation to perform.
- D
It defines the type of data being processed by the computer system.
Correct answer
CIt is the first four bits of an instruction indicating the operation to perform.
Explanation
The text states, 'The very first instruction... 0010 1110. As we discussed, the first four bits of an instruction is the operation code, or OPCODE for short.'
- A
- 5
What does the mnemonic 'LOAD_A 14' signify in assembly language?
- A
It means 'Load the value 14 into a specific, unnamed memory register.'
- B
It instructs the CPU to store a value from Register A into memory address 14.
- C
It is an instruction to perform an arithmetic addition operation using number 14.
- D
It represents 'Load the contents of memory address 14 into Register A.'
Correct answer
DIt represents 'Load the contents of memory address 14 into Register A.'
Explanation
The explanation given in the content for '0010 1110' (which translates to LOAD_A 14) is: 'So what these eight numbers really mean is 'LOAD Address 14 into Register A''.
- A
- 6
What is the primary function of an Assembler program?
- A
It allows programmers to write programs entirely in plain English commands.
- B
It designs new CPU architectures based on high-level language specifications.
- C
It optimizes existing binary code to run more efficiently on different systems.
- D
It translates human-readable text instructions into native binary machine code.
Correct answer
DIt translates human-readable text instructions into native binary machine code.
Explanation
The content explains, 'programmers came up with a clever trick. They created reusable helper programs... that read in text-based instructions, and assemble them into the corresponding binary instructions automatically. This program is called... an Assembler.'
- A
- 7
How did Assemblers improve the process of handling JUMP instructions?
- A
They eliminated the need for JUMP instructions entirely in assembly code.
- B
They allowed programmers to specify raw memory addresses for jumps directly.
- C
They converted all jump instructions into complex, multi-line arithmetic operations.
- D
They automatically calculated and updated jump addresses using symbolic labels.
Correct answer
DThey automatically calculated and updated jump addresses using symbolic labels.
Explanation
The text states, 'an assembler does away with raw jump addresses, and lets you insert little labels that can be jumped to. When this program is passed into the assembler, it does the work of figuring out all of the jump addresses.'
- A
- 8
What is a key characteristic of Assembly Languages regarding their relationship with hardware?
- A
Assembly languages are designed to abstract away all underlying hardware details.
- B
Each assembly instruction typically maps one-to-one to a machine instruction.
- C
They allow programmers to ignore registers and memory locations completely.
- D
They are entirely hardware-independent, allowing programs to run universally.
Correct answer
BEach assembly instruction typically maps one-to-one to a machine instruction.
Explanation
The content explains, 'even with nifty assembler features like auto-linking JUMPs to labels, Assembly Languages are still a thin veneer over machine code. In general, each assembly language instruction converts directly to a corresponding machine instruction – a one-to-one mapping – so it’s inherently tied to the underlying hardware.'
- A
- 9
Who developed the first compiler in 1952?
- A
A group of anonymous programmers working on the Harvard Mark 1.
- B
Dr. Grace Hopper, a US naval officer and programming pioneer.
- C
John Backus, director of the FORTRAN project for IBM.
- D
A consortium of computer experts from academia and government.
Correct answer
BDr. Grace Hopper, a US naval officer and programming pioneer.
Explanation
The text clearly states, 'To perform this complex translation, Hopper built the first compiler in 1952.'
- A
- 10
What was the purpose of Grace Hopper's 'Arithmetic Language Version 0' (A-0)?
- A
To optimize existing machine code for faster execution on the Mark 1.
- B
To create a high-level programming language that could be compiled.
- C
To provide a new assembly language with enhanced jump features.
- D
To design a more efficient system for punched paper tape programming.
Correct answer
BTo create a high-level programming language that could be compiled.
Explanation
The content explains, 'To unleash the potential of computers, she designed a high-level programming language called 'Arithmetic Language Version 0', or A-0 for short.'
- A
- 11
What is the main function of a compiler?
- A
It translates binary machine code back into high-level source code.
- B
It transforms source code written in a programming language into low-level code.
- C
It debugs and patches errors in physical punched paper tape programs.
- D
It automatically generates pseudo-code from given hardware specifications.
Correct answer
BIt transforms source code written in a programming language into low-level code.
Explanation
The text defines a compiler as 'a specialized program that transforms 'source' code written in a programming language into a low-level language, like assembly or the binary 'machine code' that the CPU can directly process.'
- A
- 12
What was a significant skepticism surrounding Hopper's compiler idea?
- A
People believed computers could only perform complex calculations, not simple programs.
- B
There was concern that compilers would make programming too accessible for general users.
- C
Many thought compilers would introduce too many errors into the final machine code.
- D
People were convinced that computers were only capable of performing arithmetic.
Correct answer
DPeople were convinced that computers were only capable of performing arithmetic.
Explanation
Hopper stated, 'I had a running compiler and nobody would touch it. … they carefully told me, computers could only do arithmetic; they could not do programs.'
- A
- 13
How do high-level languages like Python abstract away complexity compared to assembly?
- A
They focus only on numerical operations, leaving other tasks to the assembler.
- B
They allow programmers to ignore hardware details like registers and memory.
- C
They require programmers to manually manage registers and memory locations.
- D
They strictly enforce the direct, one-to-one mapping to machine instructions.
Correct answer
BThey allow programmers to ignore hardware details like registers and memory.
Explanation
Using Python as an example, the content highlights, 'Notice how there are no registers or memory locations to deal with -- the compiler takes care of that stuff, abstracting away a lot of low-level and unnecessary complexity.'
- A
- 14
What is the significance of variables in high-level programming languages?
- A
They directly specify the physical memory addresses for data storage.
- B
They are abstractions for memory locations that programmers can name.
- C
They are fixed names for registers that programmers must explicitly choose.
- D
They represent the raw binary values that the CPU directly processes.
Correct answer
BThey are abstractions for memory locations that programmers can name.
Explanation
The text states, 'The programmer just creates abstractions for needed memory locations, known as variables, and gives them names.'
- A
- 15
Which programming language, released by IBM in 1957, became dominant in early computing?
- A
ALGOL, an early language emphasizing algorithmic expression.
- B
COBOL, designed for business-oriented data processing tasks.
- C
A-0, developed by Grace Hopper for early compiler experimentation.
- D
FORTRAN, focused on 'Formula Translation' for scientific computing.
Correct answer
DFORTRAN, focused on 'Formula Translation' for scientific computing.
Explanation
The content mentions, 'FORTRAN, derived from 'Formula Translation', was released by IBM a few years later, in 1957, and came to dominate early computer programming.'
- A
- 16
What was John Backus's motivation for developing FORTRAN?
- A
He was lazy and sought to make programming easier and less time-consuming.
- B
He was tasked by the government to standardize programming across industries.
- C
He aimed to develop a language that could run on all computer types.
- D
He wanted to create a language with superior performance over all others.
Correct answer
AHe was lazy and sought to make programming easier and less time-consuming.
Explanation
John Backus is quoted saying: 'Much of my work has come from being lazy. I didn't like writing programs, and so ... I started work on a programming system to make it easier to write programs.'
- A
- 17
What economic advantage did FORTRAN offer despite potential performance concerns?
- A
It significantly decreased computation time, making computers faster.
- B
It completely automated program generation, removing programmer involvement.
- C
It allowed programmers to write more code more quickly, reducing cost.
- D
It enabled programs to run on any computer, eliminating rewrite needs.
Correct answer
CIt allowed programmers to write more code more quickly, reducing cost.
Explanation
The text explains, 'the fact that programmers could write more code more quickly, made it an easy choice economically: trading a small increase in computation time for a significant decrease in programmer time.'
- A
- 18
What was a major limitation of early programming languages like FORTRAN?
- A
They could only be compiled and run on a single specific type of computer.
- B
They required extensive manual translation into machine code after compilation.
- C
They were too complex for average users, limiting their widespread adoption.
- D
They lacked the ability to perform basic arithmetic or data storage operations.
Correct answer
AThey could only be compiled and run on a single specific type of computer.
Explanation
The content states, 'initially, FORTRAN code could only be compiled and run on IBM computers. And most programing languages and compilers of the 1950s could only run on a single type of computer.'
- A
- 19
What problem did the Committee on Data Systems Languages aim to solve?
- A
The problem of programs requiring rewriting when upgrading computers.
- B
The issue of compilers being too slow to process large programs.
- C
The need for programming languages to be more aesthetically pleasing.
- D
The challenge of creating faster computer hardware through software.
Correct answer
AThe problem of programs requiring rewriting when upgrading computers.
Explanation
The text indicates, 'if you upgraded your computer, you’d often have to re-write all the code too! In response, computer experts... formed a consortium... to guide the development of a common programming language that could be used across different machines.'
- A
- 20
What does the phrase 'write once, run anywhere' mean in programming?
- A
Source code can be compiled and run on different computer architectures.
- B
Software written for one specific CPU can be installed on any hardware.
- C
A program can only be written once and then never modified again.
- D
A programmer only needs to learn one language to code for all systems.
Correct answer
ASource code can be compiled and run on different computer architectures.
Explanation
Regarding COBOL, the text says, 'these compilers could all accept the same COBOL source code, no matter what computer it was run on. This notion is called write once, run anywhere.'
- A
- 21
How did high-level programming languages impact computing's barrier to entry?
- A
They increased the complexity, requiring more training for basic tasks.
- B
They made computing an exclusive realm for specialized hardware experts.
- C
They made computing accessible to a much wider range of professionals.
- D
They significantly reduced the cost of computer hardware components.
Correct answer
CThey made computing accessible to a much wider range of professionals.
Explanation
The content states, 'The biggest impact of all this was reducing computing’s barrier to entry. Before high level programming languages existed, it was a realm exclusive to computer experts... But now, scientists, engineers, doctors... and many others could incorporate computation into their work.'
- A
- 22
What kind of programs became possible due to abstraction in programming?
- A
Only simple, basic arithmetic calculations were made possible.
- B
Increasingly sophisticated programs with many lines of code.
- C
Exclusively machine-specific, low-level utility programs.
- D
Programs that could solely manage physical hardware components.
Correct answer
BIncreasingly sophisticated programs with many lines of code.
Explanation
The text explains, 'abstraction in programming allowed those computer experts – now 'professional programmers' – to create increasingly sophisticated programs, which would have taken millions, tens of millions, or even more lines of assembly code.'
- A
- 23
Which of these languages was NOT mentioned as emerging in the 1990s?
- A
Ruby, known for its focus on programmer productivity and simplicity.
- B
Java, a platform-independent, object-oriented programming language.
- C
Smalltalk, an influential language from the 1970s for object-oriented design.
- D
Python, a versatile language popular for web development and data science.
Correct answer
CSmalltalk, an influential language from the 1970s for object-oriented design.
Explanation
The text lists for the 90's: 'python, ruby, and Java.' Smalltalk is mentioned as a 70's language.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.