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