Save
A-level-Computer Science-AQA
Unit 4 Hardware & Software
Programming language classification
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Sagar
Visit profile
Cards (44)
What are the two classifications of programming languages?
Low-level
and
high-level
languages
View source
What are the two types of low-level languages?
Machine-code
and
assembly language
View source
What is an imperative high-level language?
A language that consists of
commands
for the computer to perform
View source
What are the advantages of machine-code and assembly language programming compared to high-level programming?
They offer
more
control
over
hardware
and can be more
efficient
View source
Who developed the Colossus Mark 1 computer?
Tommy Flowers
View source
In what year was the Colossus Mark 1 built?
1943
View source
What was the input method for the Colossus computer?
A continuous loop of paper tape with
20,000
5-bit
characters
View source
How was the Colossus programmed?
Using
switches
and
plug panels
View source
What was the output method for the Colossus computer?
An
indicator lamp panel
View source
What was the purpose of the Colossus during World War II?
To break the
Enigma Code
used by the Germans
View source
What type of cipher was used in the Enigma Code?
A
Vernam-type
cipher
View source
What was the significance of the urgency in breaking the Enigma Code?
It led to
Britain's
best brains being recruited to develop
hardware
and
software
View source
What was the typical memory cell in early computers made of?
A
vacuum tube
the size of a
light bulb
View source
What components did early computers have?
A
control unit
and an
accumulator
View source
How were early computers programmed?
Using
machine code
entered with a series of
switches
View source
What does a typical instruction in machine code consist of?
An
operation code
(
opcode
) and an operand
View source
How many different instructions are possible using 8 bits for the opcode?
256
different instructions
View source
What is the largest value of the operand that can be held in 16 bits?
65,535
View source
What is an instruction set?
All the instructions that a
computer
can understand and execute
View source
What does the opcode 0000 do in machine code?
Loads the value stored in memory location specified by the operand into the
accumulator
View source
What does the opcode 0001 do in machine code?
Stores the value in the
accumulator
into memory location specified by the
operand
View source
What does the opcode 0010 do in machine code?
Adds the value specified in the operand to the value in the
accumulator
View source
What does the opcode 0011 do in machine code?
Compares the contents of the
accumulator
with the contents of the location specified by the
operand
View source
What are the two major improvements that assembly language introduced over machine code?
Each
opcode
was replaced by a
mnemonic
The
operand
was replaced by a
decimal
(or hexadecimal) number
View source
What is the relationship between assembly language and machine code instructions?
There is a
one-to-one correspondence
between them
View source
What does the instruction LDA do in assembly language?
Loads the value stored in memory location specified by the operand into the
accumulator
View source
What does the instruction STO do in assembly language?
Stores the value in the
accumulator
into memory location specified by the
operand
View source
What does the instruction ADD do in assembly language?
Adds the value specified in the operand to the value in the
accumulator
View source
What does the instruction CMP do in assembly language?
Compares the contents of the
accumulator
with the contents of the location specified by the
operand
View source
What does the sample program do in assembly language?
LDA
13: Load the
accumulator
with the value at
memory address
13
ADD
14: Add the value at memory address 14 to the accumulator
CMP
15: Compare the accumulator with the value at memory address 15
BGT
6: If greater, branch to instruction at line 6 (
STOP
)
STO 15: Store the accumulator value into memory address 15
STOP: End the program
View source
What advantages does assembly code bring to programmers?
It is much easier to write, understand, and
debug
View source
What is a disadvantage of assembly code?
It has to be translated into
machine code
by an
assembler
View source
What was the first high-level programming language invented?
FORTRAN
View source
How do FORTRAN statements compare to machine code?
They look like
Maths
or English
View source
What is the difference between imperative and declarative languages?
Imperative languages consist of
commands
, while declarative languages focus on what the program should do
View source
Name some examples of high-level languages.
FORTRAN
,
Pascal
,
Delphi
,
Visual BASIC
, Python
View source
What does it mean for a language to be high-level?
It allows programmers to think in terms of
algorithms
rather than
hardware
execution
View source
What must happen before a high-level program can be executed?
It must be converted into
machine code
View source
What is a key difference between assembly language and high-level languages?
Assembly language has a one-to-one relationship with
machine code
, while high-level languages do not
View source
What are the advantages of high-level languages over low-level languages?
They are easier and faster to write,
debug
, and maintain
View source
See all 44 cards