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