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