Flashcards
year 8 summer exam flashcards
Cards in this deck (69)
- 1what should be considered when designing an algorithmif there is more than one way of solving the problem
- 2What are the two main ways that algorithms can be designed?In pseudocode or as a flowchart
- 3What is pseudocode?A way of describing a set of instructions in text form
- 4What is a flowchart?A flowchart is a diagram that represents a set of instructions
- 5What is the symbol for a decision in a flowchart?A diamond
- 6Which of these is the correct symbol for a process in a flowchart?A rectangle
- 7How are symbols connected together in a flowchart?With lines and an arrow to show the direction of flow
- 8Which symbol is used for a decision in a flowchart?A diamond
- 9How would a condition loop be created when writing pseudocode?With a WHILE loop or a REPEAT-UNTIL loop
- 10When can algorithms be used?To design a solution to any problem
- 11What does a searching algorithm do?Search through a set of data
- 12What would be needed if searching algorithms didn't exist?Each item of data would need to be looked at one by one, until the searched for data was found
- 13Which of these is a type of searching algorithm?Serial search
- 14What does a serial search do?Looks at the first item of data, then each one in turn, until it finds the data item requested
- 15What is an advantage of a serial search?It is a simple algorithm
- 16Which of the following is NOT an advantage of a serial search?It is the quickest search to use
- 17What does a binary search do?Takes the data and splits it in half repeatedly until it finds the data item requested
- 18Which search algorithm would be best to use with ordered data?A binary search
- 19What is an advantage of a binary searchIt is very quick
- 20What is the biggest disadvantage of a binary search?It can only be used if the data is sorted into an order
- 21What does a sorting algorithm do?Puts a list of items into order
- 22What does a bubble sort do?Sorts a list by comparing two items that are side by side, to see which is out of order
- 23How many passes will a bubble sort go through?Several passes - until the data is fully ordered
- 24Why does a bubble sort do a final pass even when the data is in the correct order?It does not recognise that the data is in order until the final pass requires no changes
- 25Which of the following is an advantage of a bubble sort?It is a very small and simple computer program
- 26Which of the following is NOT an advantage of a bubble sort?It is a very small and simple computer program
- 27What does a bucket sort do?Separates a list of data into different collections of data which are sorted and gathered back into a list
- 28Which of the following is a disadvantage of a bucket sort?It is more complicated than a bubble sort
- 29Which of the following is an advantage of a bucket sort?It is quicker to run than a bubble sort
- 30Which of the following is not a type of sorting algorithm?Long sort
- 31What three building blocks are used when designing algorithms?Sequencing, selection, iteration
- 32What is sequencing?The order in which steps are carried out in an algorithm
- 33Why is sequencing important?To ensure the algorithm functions as intended
- 34What might happen if the sequence is wrong?The algorithm may produce unexpected results
- 35Which of the following contains a correct sequence to make a cup of tea?Add water to kettle, boil water, add hot water to cup
- 36Which of the following contains the correct sequence to draw a square?Draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line, turn left 90 degrees, draw a 1 cm line
- 37Which of the following contains an INCORRECT sequence when getting dressed to go out?Put on coat, put on shoes, put on socks
- 38Which of the following contains the correct sequence for making jam on toast?Put bread in toaster, remove toast when done, spread butter on toast, spread jam on toast
- 39How is sequencing represented in a flowchart?As a series of boxes that follow each other, linked by arrows
- 40How is sequencing represented in pseudocode?Each step of the algorithm is written on a line of its own, in sequence
- 41What is selection?A decision
- 42Why is selection important?Selection allows us to include more than one path through a solution
- 43How many paths can be followed from a decision?Two
- 44In pseudocode how is a decision represented?IF-THEN-ELSE
- 45Which of the instructions IF, THEN and ELSE represents a question?IF
- 46Which of the instructions IF, THEN and ELSE points to what to do if the answer to the question is FALSE?ELSE
- 47Which of the instructions IF, THEN and ELSE points to what to do if the answer to the question is TRUE?THEN
- 48In a flowchart how is a decision represented?With a diamond-shaped box
- 49What does the instruction ELSE IF allow?More than two paths through an algorithm
- 50Which of the following instructions represent questions?ELSE and ELSE IF
- 51What are the three building blocks to use when designing algorithms?Sequencing, selection, iteration
- 52What is iteration?Repeating steps in an algorithm
- 53Why is iteration important?It allows us to simplify an algorithm by removing unnecessary steps
- 54What is another name for iteration?Loop
- 55What is a condition?A situation that is checked every time iteration occurs
- 56What is meant by testing a condition?Checking to see if a condition has been met
- 57How is iteration represented in pseudocode?REPEAT-UNTIL
- 58How is iteration represented in a flowchart?As a decision
- 59What is a counter used for in iteration?To keep track of how many times the solution has iterated
- 60What is logical reasoning?Using rules to solve problems
- 61What is logical reasoning used for?To predict the outcome of an algorithm
- 62Why is logical reasoning used?To compare the effectiveness of different algorithms to solve a problem
- 63Which symbol means 'greater than'?>
- 64Which symbol means 'greater than or equal to'?>=
- 65Which symbol means 'equal to'?=
- 66Which condition would confirm that someone 17 or over is able to drive a car?age >= 17
- 67Which condition would confirm that someone 12 or over is able to watch a 12 rated film?age >= 12
- 68Which condition would confirm that only someone 21 and over can drive a mini-bus?age >= 21
- 69Which condition would say that only those older than 14 can watch a 15 rated film?age > 14
Information
- Description
- Year 7 Computing Flashcards on year 8 summer exam flashcards, created by Austin Leach on 15/02/2019.
- Created by
- Austin Leach
- Views
- 1
- Rating
More on Searching and Sorting Algorithms