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