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