4.1.6

Turning an Algorithm into an App (2/2)

Test yourself on Turning an Algorithm into an App (2/2)

Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Turning an Algorithm into an App

You need to follow a few more steps to complete your app.

Event and Control blocks

Event and Control blocks

  • You then need to add blocks of code called 'Event and Control blocks'.
  • Event and Control blocks give ‘ifthen’ and ‘repeat until…’ instructions.
Examples

Examples

  • Event and Control blocks control the following in the basketball game:
    • What happens if the mouse is moved? → the red block moves.
    • What happens if the ball touches a wall or the hand? → the ball bounces.
Other examples

Other examples

  • Event and Control blocks control the following in the basketball game:
    • What happens if the ball touches each ‘basket’? → the score of the shooting team goes up.
    • When does the game end? → first team to get to 5 points.
Variables blocks

Variables blocks

  • Blocks of code that create variables are called variable blocks.
    • Variables are things that can change.
  • Variable blocks of code give instructions for the selection of:
    • the colour, time, distance, the angle of bounces, etc.
Jump to other topics

Practice questions on Turning an Algorithm into an App (2/2)

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
Answer all questions on Turning an Algorithm into an App (2/2)

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium