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