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