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