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