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