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