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