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