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