Flashcards
Algorithms
Flashcards do conjunto (17)
- 1What is an algorithm?A set of steps that create an ordered approach to a problem solution.
- 2State the two methods of writing algorithmsFlowcharts
Pseudocode - 3What is a flowchart?A diagram that graphically depicts the steps that take place in a program
- 4What is pseudocode?Pseudocode is a cross between human language and a programming language. Although the computer can't understand pseudocode, programmers often find it helpful to plan an algorithm in a language that's almost a programming language but still very readable by humans.
- 5What shape represents a decision in a flowchart?A Diamond
- 6What shape represents an input or output in a flowchart?Parallelogram
- 7What shape represents a process in a flowchart?A rectangle
- 8What shape represents the start or end of a flowchart?An oval
- 9What shape represents a sub-program in a flowchart?Rectangle with tram lines
- 10What shape represents a connector in a flowchart?A circle
- 11How is the flow of data shown in a flowchart?Lines and arrows
- 12How do you read a flowchart?From top to bottom and left to right.
- 13How is output written in pseudocode?print("message") or
OUTPUT "message" - 14How is input written in pseudocode?variableName = input("message") or
INPUT variableName - 15How is a decision written in pseudocode?IF condition THEN
statement to do if true
ELSE
statement to do if false - 16How is condition-controlled iteration written in pseudocode?WHILE condition DO
statement to do if true
ENDWHILE
or
DO
statement to do
UNTIL condition (is true) - 17How is count-controlled iteration written in pseudocode?FOR i = startingNo to endNo* DO
statement to do
NEXT i
*endNo is included
Informações
- Descrição
- A level Computing FlashCards sobre Algorithms, criado por Claire Wootten em 10-11-2019.
- Criado por
- Claire Wootten
- Visualizações
- 0
- Avaliação