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