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.⚙️ In an app, is typing your age an input, processing or an output? (a) output (b) processing (c) input
- 2.Which of these is an input? (a) a buzz (vibration) (b) working out a tip (c) a pop-up message (d) taking a photo
- 3.⚙️ In an app, is a beep sound an input, processing or an output? (a) output (b) input (c) processing
-
4.⚙️ 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 2 (b) line 3 (c) line 1 -
5.⚙️ What number does this app show?
let bill = 28; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); - 6.Which of these is an input? (a) adding up a bill (b) a pop-up message (c) sorting the scores (d) speaking a command
-
7.⚙️ What number does this app show?
let bill = 240; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); - 8.True or false: speaking a command is an input. (a) True (b) False
- 9.Which of these is processing? (a) working out a tip (b) tapping a button (c) a buzz (vibration) (d) taking a photo
- 10.Which of these is an input? (a) tapping a button (b) a buzz (vibration) (c) checking a password (d) working out a tip
-
11.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 136; // 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 3 (b) line 4 (c) line 2 (d) line 1 -
12.⚙️ What number does this app show?
let bill = 375; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); -
13.⚙️ What number does this app show?
let price = 25; // typed by the user
let qty = 2; // typed by the user
let total = price * qty;
show(total); - 14.🔍 Which is the odd one out? (a) typing your age (b) taking a photo (c) adding up a bill (d) speaking a command
-
15.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 93; // 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 3 (b) line 4 (c) line 2 (d) line 1 -
16.⚙️ What number does this app show?
let km = 10; // typed by the user
let metres = km * 1000;
show(metres); -
17.⚙️ What number does this app show?
let bill = 63; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); - 18.⚙️ In an app, is a pop-up message an input, processing or an output? (a) processing (b) output (c) input
-
19.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 100; // 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 1 (c) line 4 (d) line 3 -
20.⚙️ What number does this app show?
let bill = 180; // typed by the user
let friends = 3; // typed by the user
let share = bill / friends;
show(share); -
21.⚙️ What number does this app show?
let price = 390; // typed by the user
let off = 40; // typed by the user
let pay = price - off;
show(pay); -
22.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 86; // 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 4 (b) line 1 (c) line 3 (d) line 2 - 23.🔍 Which is the odd one out? (a) a result on screen (b) tapping a button (c) typing your age (d) speaking a command
- 24.🔍 Which is the odd one out? (a) a pop-up message (b) a buzz (vibration) (c) typing your age (d) a result on screen
-
25.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 295; // typed by the user
line 2: let friends = 5; // typed by the user
line 3: let share = bill / friends;
line 4: show(share); (a) line 3 (b) line 2 (c) line 4 (d) line 1 -
26.⚙️ What number does this app show?
let km = 8; // typed by the user
let metres = km * 1000;
show(metres); - 27.True or false: a pop-up message is processing. (a) True (b) False
- 28.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
-
29.⚙️ What number does this app show?
let km = 14; // typed by the user
let metres = km * 1000;
show(metres); - 30.Which of these is processing? (a) taking a photo (b) checking a password (c) a beep sound (d) tapping a button
- 31.True or false: a beep sound is processing. (a) False (b) True
-
32.⚙️ What number does this app show?
let price = 500; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); - 33.True or false: typing your age is processing. (a) True (b) False
-
34.⚙️ 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 3 (b) line 2 (c) line 1 -
35.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 65; // 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 4 (c) line 2 (d) line 1 -
36.⚙️ What number does this app show?
let price = 240; // typed by the user
let off = 50; // typed by the user
let pay = price - off;
show(pay); - 37.🔍 Which is the odd one out? (a) adding up a bill (b) checking a password (c) speaking a command (d) working out a tip
- 38.⚙️ In an app, is a result on screen an input, processing or an output? (a) processing (b) input (c) output
-
39.⚙️ What number does this app show?
let price = 50; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); -
40.⚙️ What number does this app show?
let km = 9; // typed by the user
let metres = km * 1000;
show(metres);
Answer key
- input
- taking a photo
- output
- line 2
- 14
- speaking a command
- 80
- True
- working out a tip
- tapping a button
- line 3
- 75
- 50
- adding up a bill
- line 3
- 10000
- 21
- output
- line 3
- 60
- 350
- line 3
- a result on screen
- typing your age
- line 3
- 8000
- False
- input
- 14000
- checking a password
- False
- 480
- False
- line 2
- line 3
- 190
- speaking a command
- output
- 300
- 9000
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students