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