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