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