Algorithms Flashcards
What is an algorithm?
A sequence of logical instructions for carrying out a task.
What are two common methods for designing algorithms?
Pseudo-code and flowcharts.
What do algorithms focus on when being designed?
The logic of the steps.
What is meant by ‘language independent’ in the context of algorithms?
Programmers should be able to translate an algorithm into any programming language.
Fill in the blank: An algorithm can be designed using _______ and/or flowcharts.
pseudo-code
True or False: Algorithms are specific to a programming language.
False
What is the purpose of using statements and expressions in algorithms?
To provide clear instructions for solving a problem.
What is pseudo-code?
A method of writing up a set of instructions for a computer program using plain English.
What is a flowchart?
A diagram that shows the step-by-step flow of an algorithm.
What is a statement in an algorithm?
The smallest element of a programming language which expresses an action to be carried out.
What is a programming language?
A language used by a programmer to write a piece of software.
What is decomposition?
Breaking down a complex problem or system into smaller parts that are more manageable and easier to understand.
What is abstraction?
The process of extracting or withdrawing something eg. The underground Map
Psuedo-code can be broken into three sections. What are they?
Inputs
Processes
Outputs
What is assignment?
Setting the value of a variable in a computer program.