Year 8

User input

Year 8

User input

warning

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

Lesson details

Key learning points

  1. In this lesson, we will explore how user input is captured. We will then start to develop our own apps by decomposing the task into more managable steps.

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.
In the following image, what type of input option do you see at point A?
An image in a quiz
Button
Check boxes
Labels
Correct answer: Text boxes
Q2.
In the following image, what type of input option do you see at point B?
An image in a quiz
Button
Correct answer: Check boxes
Labels
Text boxes
Q3.
Looking at the code below, what happens after the "login" button has been clicked?
An image in a quiz
A data entry box (username) will appear
Nothing, as the variable name hasn’t been declared beforehand
Correct answer: The text entered by the user into the input box is collected and linked to the username variable
The user is prompted to enter text into the input box