Programming Flashcards
What is a constant?
value that stays the same throughout the running of the program.
What is a variable?
A name/symbol which represents a value in a
program and .points to a memory location: A value that changes during the programs execution.
What is a sequence?
one instruction after another
What is a selection?
A condition is used to decide whether code should be executed (if/case)
What is an iteration?
A process or sequence that is repeated usually in the form of a loop (for/loop/repeat)
code is executed repeatedly
What are two examples of low level language?
assembly language and machine code
A translator is needed to…
converts high-level languages into machine code. (compilers and interpreters)
What does an IF/THEN/ELSE statement do?
allows you to select an option from several options
What does a CASE statement do?
for coding multiple choices in a program
What is an algorithm?
a process or set of rules to be followed to complete a task e.g. flow charts or pseudocode
What is high level code?
code which is close to human languages e.g. python
What is Machine code?
a language directly understood by the CPU, instructions are represented by a string of bits
What is an interpreter and a compiler?
converts high level code into machine code
What is an assembler?
coverts assembly language into machine code
What is a for loop?
repeats a group of steps a specified number of times