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