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