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