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