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