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