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