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