Using selection in programming to develop a quiz

Using selection in programming to develop a quiz

Downloads can take a few minutes, especially for larger files or slower connections.

Threads

Why this why now

Having previously explored how conditions can be used in programming, pupils now extend this to the ‘if…then…else…’ structure, showing how different outcomes can be chosen depending on whether a condition is true or false. Pupils represent this in algorithms and then apply it by writing programs that ask questions and respond with different results. More generally, pupils see how selection mirrors decision-making for example, checking whether an answer is correct, classifying data or modelling natural processes showing the wider value of these programming concepts.

Prior knowledge requirements

  • Pupils have experience of using sequence, selection and iteration in block-based programs.
  • Pupils understand that programs have adjust their flow of control based on the state of a program.

Threads

Why this why now

Having previously explored how conditions can be used in programming, pupils now extend this to the ‘if…then…else…’ structure, showing how different outcomes can be chosen depending on whether a condition is true or false. Pupils represent this in algorithms and then apply it by writing programs that ask questions and respond with different results. More generally, pupils see how selection mirrors decision-making for example, checking whether an answer is correct, classifying data or modelling natural processes showing the wider value of these programming concepts.

Prior knowledge requirements

  • Pupils have experience of using sequence, selection and iteration in block-based programs.
  • Pupils understand that programs have adjust their flow of control based on the state of a program.

Using selection in programming to develop a quiz

In this unit pupils will discover how to write programs that ask questions and use selection to control the outcomes based on the answers given. They will design a quiz in response to a given task and implement it as a program. They will then evaluate their programs against given criteria.