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