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