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