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