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