A-Level Flashcards
State what an algorithm is
A series of steps that are needed to be performed in order to perform a task
Why is it important for algorithms to be in the correct order?
So that it can run correctly without any errors
What is the purpose of a sub-step?
To break down a step in the algorithm so that it is clearer and easier to follow.
Most algorithms have 3 parts to it..They are.
Input. Process. Output
A condition in an algorithm…
allows for an algorithm to be solved in different ways.
Why use conditions in an algorithm.
It may make the task easier or faster to complete.
A condition in an algorithm is made up of three steps which are.
IF.THEN.ELSE
Another name for a condition is called…
Selection
Another name for a loop is
Repetition or Iteration
How many ways can you express an algorithm, and what are they?
3.
- Psuedo Code
- Structured English
- Flow Chart
What is the shape of an input/output in a flow chart?
Parallelogram
What is the shape for a condition/selection in a flow chart?
Kite
Which is the shape for a loop/repetition/iteration in a flow chart?
Eclipse
What is the structured english for assigning a value for giving someone the weight of 100
Set weight to 100
There are 3 ways to use negative numbers in Binary? What are they?
Magnitude
1’s Complement
2’s Complement
State the problems with using the magnitude method
It leads to calculation errors due to the fact it has a positive and negative zero.
It struggles to calculate positive and negative numbers.
State the difference between 2’s Complement and 1’s Complement Binary
2’s complement of a binary number is 1 added to the 1’s complement of the binary number.
State what is meant by Structured English
A subset of English Language that consists of command statements used to describe an algorithm.
State what is meant by Pseudocode
A way of using keywords and identifiers to describe an algorithm without following the syntax of a particular programming language.
State what is meant by Flowchart
Shapes linked together to represent the sequential steps of an algorithm
State what is meant by Assignment
A value is given a name (identifier) or the value associated with a given identifier is changed.
State what is meant by Selection
Under certain conditions some steps are performed, otherwise different (or no) steps are performed.
State what is meant by Repetition
A sequence of steps is performed a number of times. This is known as iteration or looping.
State what is meant by Input/Process/Output
Many problems we try to solve with a computer involve data which can be inputted, processed, or outputted.
State what is meant by BCD
Binary coded decimal (BCD) is a system of writing numerals that assigns a four-digit binary code to each digit 0 through 9 in a decimal (base-10) numeral.
When/Why do we use BCD?
Binary coded decimal has many important applications especially using digital displays. In the BCD numbering system, a decimal number is separated into four bits for each decimal digit within the number.
Describe how denary integers larger than 9 can be converted into BCD.
Give an example in your answer.
Each denary digit is written as a 4-bit binary number
• Example: 46 = 0100 0110
Describe how an 8-bit BCD representation can be converted into a denary integer.
Give an example in your answer.
• Binary number is split up into groups of 4 bits (starting from the right) // Each group of 4 bits is converted to a denary digit • Example: 0011 0111 = 37