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