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