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 line does the processing (works out the answer)?
line 1: let bill = 24; // 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 -
2.⚙️ What number does this app show?
let price = 80; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); -
3.⚙️ What number does this app show?
let bill = 26; // typed by the user
let friends = 2; // typed by the user
let share = bill / friends;
show(share); -
4.⚙️ What number does this app show?
let price = 210; // typed by the user
let off = 10; // typed by the user
let pay = price - off;
show(pay); -
5.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 15; // 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 4 (b) line 3 (c) line 1 (d) line 2 - 6.⚙️ In an app, is taking a photo an input, processing or an output? (a) output (b) processing (c) input
- 7.⚙️ In an app, is working out a tip an input, processing or an output? (a) output (b) processing (c) input
-
8.⚙️ 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); - 9.True or false: working out a tip is an output. (a) True (b) False
- 10.⚙️ In an app, is a pop-up message an input, processing or an output? (a) input (b) processing (c) output
-
11.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 156; // 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 1 (c) line 3 (d) line 4 -
12.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 155; // 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 4 (b) line 2 (c) line 3 (d) line 1 -
13.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 54; // 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 -
14.⚙️ Which line does the processing (works out the answer)?
line 1: let price = 200; // typed by the user
line 2: let off = 20; // typed by the user
line 3: let pay = price - off;
line 4: show(pay); (a) line 2 (b) line 1 (c) line 3 (d) line 4 - 15.⚙️ In an app, is adding up a bill an input, processing or an output? (a) input (b) processing (c) output
- 16.True or false: adding up a bill is an input. (a) False (b) True
-
17.⚙️ What number does this app show?
let price = 55; // typed by the user
let qty = 6; // typed by the user
let total = price * qty;
show(total); - 18.⚙️ In an app, is a result on screen an input, processing or an output? (a) input (b) processing (c) output
-
19.⚙️ What number does this app show?
let price = 440; // typed by the user
let off = 30; // typed by the user
let pay = price - off;
show(pay); - 20.True or false: a buzz (vibration) is processing. (a) True (b) False
-
21.⚙️ What number does this app show?
let bill = 224; // typed by the user
let friends = 4; // typed by the user
let share = bill / friends;
show(share); - 22.True or false: a result on screen is an input. (a) True (b) False
- 23.Which of these is an input? (a) speaking a command (b) working out a tip (c) sorting the scores (d) a result on screen
- 24.True or false: checking a password is processing. (a) False (b) True
-
25.⚙️ What number does this app show?
let price = 290; // typed by the user
let off = 20; // typed by the user
let pay = price - off;
show(pay); - 26.True or false: speaking a command is an input. (a) True (b) False
- 27.Which of these is processing? (a) taking a photo (b) a result on screen (c) sorting the scores (d) a beep sound
-
28.⚙️ What number does this app show?
let bill = 325; // typed by the user
let friends = 5; // typed by the user
let share = bill / friends;
show(share); -
29.⚙️ Which line does the processing (works out the answer)?
line 1: let bill = 185; // 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 4 (b) line 1 (c) line 2 (d) line 3 - 30.True or false: checking a password is an input. (a) False (b) True
- 31.🔍 Which is the odd one out? (a) a result on screen (b) sorting the scores (c) a pop-up message (d) a beep sound
-
32.⚙️ What number does this app show?
let km = 7; // typed by the user
let metres = km * 1000;
show(metres); - 33.Which of these is an input? (a) working out a tip (b) tapping a button (c) sorting the scores (d) adding up a bill
- 34.🔍 Which is the odd one out? (a) tapping a button (b) working out a tip (c) sorting the scores (d) adding up a bill
- 35.Which of these is an input? (a) adding up a bill (b) taking a photo (c) sorting the scores (d) working out a tip
- 36.⚙️ In an app, is sorting the scores an input, processing or an output? (a) output (b) processing (c) input
- 37.⚙️ In an app, is tapping a button an input, processing or an output? (a) processing (b) output (c) input
- 38.Which of these is an output? (a) working out a tip (b) taking a photo (c) checking a password (d) a result on screen
-
39.⚙️ What number does this app show?
let price = 450; // typed by the user
let off = 30; // typed by the user
let pay = price - off;
show(pay); -
40.⚙️ What number does this app show?
let price = 35; // typed by the user
let qty = 4; // typed by the user
let total = price * qty;
show(total);
Answer key
- line 3
- 480
- 13
- 200
- line 3
- input
- processing
- 130
- False
- output
- line 3
- line 3
- line 3
- line 3
- processing
- False
- 330
- output
- 410
- False
- 56
- False
- speaking a command
- True
- 270
- True
- sorting the scores
- 65
- line 3
- False
- sorting the scores
- 7000
- tapping a button
- tapping a button
- taking a photo
- processing
- input
- a result on screen
- 420
- 140
Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students