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