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