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