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