Save
computer science <3
programming languages
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
maisie white
Visit profile
Cards (86)
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 uses
commands
for the computer
View source
What are the advantages of machine-code programming?
Direct control over
hardware
and
performance
View source
What are the disadvantages of assembly language programming?
Complexity
and difficulty in
debugging
View source
Who developed the Colossus computer?
Tommy Flowers
View source
What was the input method for the Colossus computer?
A continuous loop of
paper tape
View source
What was the purpose of the Colossus computer during WWII?
To break the
Enigma Code
View source
What type of cipher did the Enigma Code use?
A
Vernam-type
cipher
View source
What was the memory cell technology used in early computers?
Vacuum tubes
View source
What is the structure of a typical machine code instruction?
Opcode
and
operand
View source
How many different instructions are possible using 8 bits for the opcode?
256
different instructions
View source
What does the instruction '0000' do in machine code?
Load value into the
accumulator
View source
What does assembly language improve upon compared to machine code?
Uses
mnemonics
for
opcodes
View source
What is the meaning of the instruction 'LDA' in assembly language?
Load value into the
accumulator
View source
What is the relationship between assembly language and machine code?
One-to-one correspondence
between
instructions
View source
What was the first high-level programming language?
FORTRAN
View source
How do high-level languages differ from low-level languages?
They allow abstraction from
hardware details
View source
What is an example of an imperative high-level language?
C
#
View source
What is the purpose of translating high-level language statements?
To convert them into
machine code
View source
What is a disadvantage of high-level languages compared to low-level languages?
Object code
may run slower
View source
Why are high-level languages considered portable?
They can be
recompiled
for different computers
View source
What was the memory capacity of the Apollo 11 computer?
64KB
View source
How has computer technology evolved since 1943?
Significantly improved in
hardware
and
software
View source
What are the three types of program translators?
Assembler
,
compiler
,
interpreter
View source
What is the role of an assembler?
Translates assembly language into machine code
View source
What is the role of a compiler?
Translates
high-level language
into
object code
View source
What is the role of an interpreter?
Executes high-level language programs statement by statement
View source
What is the difference between compilation and interpretation?
Compilation
translates
; interpretation translates and executes
View source
Why are programs still written in assembly language?
For speed and direct hardware access
View source
What is the relationship between assembly language and machine code?
One assembly statement maps to one machine code
statement
View source
What is the relationship between high-level programming language and machine code?
One high-level
statement
maps to several machine code
statements
View source
When would it be preferable to use a compiler?
When speed of execution is critical
View source
When would it be preferable to use an interpreter?
When rapid debugging is required
View source
What does an assembler do?
Translates assembly language into machine code
View source
What does a compiler produce?
A separate independently executable object code
View source
What is bytecode?
An intermediate language between machine code and high-level language
View source
Why is bytecode produced by some compilers?
For execution on a virtual machine
View source
How does a bytecode interpreter work?
It parses and executes
bytecodes
one at a time
View source
What is the advantage of using bytecode?
It is portable across different platforms
View source
See all 86 cards