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