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