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