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