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