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