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