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