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