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