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