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