App Dev Worksheet: Input, Processing, Output
Developer's tip (In, work, out): Input → processing → output. Input: typing, tapping, a photo, your voice. Output: a result on screen, a sound, a buzz, a pop-up. In code, the processing line works out a new value from the inputs; show() is the output.
NameDateTime takenScore ___ / 40
- 1.True or false: speaking a command is processing. (a) False (b) True
- 2.🔍 Which is the odd one out? (a) tapping a button (b) typing your age (c) working out a tip (d) speaking a command
- 3.🔍 Which is the odd one out? (a) speaking a command (b) a pop-up message (c) a result on screen (d) a beep sound
-
4.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 14; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 1 (c) line 2 -
5.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 154; // typed by the user
line 2: let friends = 2; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 2 (b) line 1 (c) line 4 (d) line 3 -
6.⚙️ What number does this app show?
let price = 40; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total); - 7.⚙️ In an app, is a result on screen an input, processing or an output? (a) output (b) input (c) processing
-
8.⚙️ What number does this app show?
let bill = 320; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); -
9.⚙️ What number does this app show?
let price = 40; // typed by the user
let qty = 3; // typed by the user
let total = price * qty;
show(total); -
10.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 8; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 1 (c) line 3 -
11.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 100; // typed by the user
line 2: let qty = 6; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 1 (b) line 4 (c) line 2 (d) line 3 -
12.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 30; // typed by the user
line 2: let qty = 2; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 3 (b) line 1 (c) line 2 (d) line 4 - 13.Which of these is processing? (a) typing your age (b) a pop-up message (c) checking a password (d) a buzz (vibration)
-
14.⚙️ What number does this app show?
let km = 5; // typed by the user
let metres = km * 1000;
show(metres); - 15.Which of these is an input? (a) checking a password (b) a buzz (vibration) (c) a result on screen (d) speaking a command
- 16.🔍 Which is the odd one out? (a) adding up a bill (b) working out a tip (c) sorting the scores (d) a result on screen
- 17.🔍 Which is the odd one out? (a) checking a password (b) tapping a button (c) speaking a command (d) typing your age
-
18.⚙️ What number does this app show?
let price = 65; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); - 19.⚙️ In an app, is sorting the scores an input, processing or an output? (a) input (b) processing (c) output
- 20.Which of these is an output? (a) tapping a button (b) checking a password (c) working out a tip (d) a result on screen
- 21.🔍 Which is the odd one out? (a) typing your age (b) taking a photo (c) speaking a command (d) a beep sound
- 22.🔍 Which is the odd one out? (a) speaking a command (b) taking a photo (c) typing your age (d) a buzz (vibration)
- 23.⚙️ In an app, is speaking a command an input, processing or an output? (a) input (b) processing (c) output
-
24.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 10; // typed by the user
line 2: let qty = 5; // typed by the user
line 3: let total = price * qty;
line 4: show(total); (a) line 2 (b) line 4 (c) line 1 (d) line 3 -
25.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 10; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 3 (c) line 1 - 26.True or false: a beep sound is an input. (a) True (b) False
- 27.🔍 Which is the odd one out? (a) a beep sound (b) a result on screen (c) a buzz (vibration) (d) adding up a bill
-
28.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 3; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 2 (b) line 3 (c) line 1 - 29.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) input (c) output
-
30.⚙️ What number does this app show?
let km = 6; // typed by the user
let metres = km * 1000;
show(metres); -
31.⚙️ What number does this app show?
let price = 90; // typed by the user
let qty = 3; // typed by the user
let total = price * qty;
show(total); -
32.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 150; // typed by the user
line 2: let friends = 3; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 1 (b) line 2 (c) line 4 (d) line 3 -
33.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 15; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 1 (c) line 2 -
34.⚙️ Which line does the processing (works out the answer)?
line 1: let km = 2; // typed by the user
line 2: let metres = km * 1000;
line 3: show(metres); (a) line 3 (b) line 2 (c) line 1 -
35.⚙️ What number does this app show?
let price = 55; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); -
36.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 104; // typed by the user
line 2: let friends = 4; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 3 (b) line 2 (c) line 1 (d) line 4 - 37.True or false: taking a photo is processing. (a) False (b) True
-
38.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 340; // typed by the user
line 2: let off = 50; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 1 (b) line 2 (c) line 3 (d) line 4 - 39.Which of these is an output? (a) a pop-up message (b) tapping a button (c) checking a password (d) taking a photo
-
40.⚙️ What number does this app show?
let bill = 98; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share);
Answer key
- False
- working out a tip
- speaking a command
- line 2
- line 3
- 160
- output
- 64
- 120
- line 2
- line 3
- line 3
- checking a password
- 5000
- speaking a command
- a result on screen
- checking a password
- 130
- processing
- a result on screen
- a beep sound
- a buzz (vibration)
- input
- line 3
- line 2
- False
- adding up a bill
- line 2
- input
- 6000
- 270
- line 3
- line 2
- line 2
- 110
- line 3
- False
- line 3
- a pop-up message
- 49
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students