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