1.1 algorithms Flashcards
What is a Language?
a programming language that resembles natural human language
What is a flowchart?
A graphical representation of a algorithm each step in the algorithm is represented by a symbol symbols are linked together with arrows showing the order in which steps are executed
What is a Pseudo-code?
a structured code-like language that can be used to describe an algorithm
what does Unambiguous mean?
this means that the instructions cannot be misunderstood simply saying ‘turn’ would be ambiguous because you could turn left or right
What is a sequence?
an ordered set of instructions
What is an Algorithm?
a precise method for solving a problem
What is a variable?
a ‘container’ used to store data. the data stored in a variable is referred to as a value the value stored in a variable is not fixed. the same variable can store different values during the course of a program and each time a program is run
What is a identifier?
a unique name given to a variable or a constant. using descriptive names for variables makes code much easier to read
What is a Arithmetic operator?
an operator that preforms a calculation on two numbers
What does Constant mean?
A ‘container’ that holds a value that never changes. like variables constants have unique identifiers
What does construct mean?
a component from which something is built letters and numbers are constructs we use to build our language and convey meaning bricks and cement are the basic constructs of building
What does selection mean?
A construct that allows a choice to be made between different alternatives
What is Iteration?
A construct that means the repetition of a process and action is repeated until there is a desired outcome or a condition is met it is often referred to as a loop
What is IF…THEN…ELSE Statement?
the IF,,THEN,,,Else statement allows a choice to be made between Two Alternative based on Whether or not a condition is met
What is an relational Operator?
an operator that compares two values