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