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