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