Lesson details

Key learning points

  1. In this lesson, we will be introduced to the concept of event-driven programming and applying this paradigm to the app that we started to develop in the previous lesson.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

3 Questions

Q1.
Which of the following would define an event?
A sequence of code that is executed when an application is opened
Correct answer: An action that triggers a sequence of code to be executed
When a sequence of code is executed more than once
When an expression evaluates as true
Q2.
Looking at the code below, what triggers the event? (Image source: code.org)
An image in a quiz
Correct answer: When an object named startbutton is clicked
When any item on the Game screen is clicked
When the Game screen opens
When the variable startbutton is initialised
Q3.
What sequence should the following events be in? (Image source: code.org)
An image in a quiz
1 then 2
2 then 1
Correct answer: The sequence is not important