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