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