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