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