← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

App development lesson 7: Input, processing and output · Set 214 · 40 questions
TalentJR

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. 1.Which of these is an input? (a) a pop-up message (b) a beep sound (c) adding up a bill (d) typing your age
  2. 2.⚙️ What number does this app show?
    let km = 11; // typed by the user
    let metres = km * 1000;
    show(metres);
  3. 3.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 284; // 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 3 (c) line 2 (d) line 4
  4. 4.True or false: adding up a bill is processing. (a) False (b) True
  5. 5.⚙️ In an app, is checking a password an input, processing or an output? (a) input (b) output (c) processing
  6. 6.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 95; // 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 2 (c) line 3 (d) line 1
  7. 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. 8.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 65; // 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 1 (b) line 2 (c) line 3 (d) line 4
  9. 9.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 15; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  10. 10.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 146; // 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 1 (b) line 2 (c) line 3 (d) line 4
  11. 11.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 90; // 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 1 (c) line 4 (d) line 3
  12. 12.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 2; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 1 (b) line 2 (c) line 3
  13. 13.⚙️ 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 3 (b) line 2 (c) line 1
  14. 14.True or false: typing your age is an input. (a) False (b) True
  15. 15.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 55; // 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
  16. 16.True or false: speaking a command is an output. (a) True (b) False
  17. 17.⚙️ Which line does the processing (works out the answer)?
    line 1: let km = 11; // typed by the user
    line 2: let metres = km * 1000;
    line 3: show(metres);
    (a) line 3 (b) line 1 (c) line 2
  18. 18.⚙️ In an app, is a pop-up message an input, processing or an output? (a) processing (b) input (c) output
  19. 19.🔍 Which is the odd one out? (a) adding up a bill (b) working out a tip (c) taking a photo (d) sorting the scores
  20. 20.Which of these is processing? (a) checking a password (b) a beep sound (c) tapping a button (d) a result on screen
  21. 21.⚙️ What number does this app show?
    let bill = 270; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);
  22. 22.🔍 Which is the odd one out? (a) taking a photo (b) speaking a command (c) tapping a button (d) a result on screen
  23. 23.⚙️ What number does this app show?
    let bill = 189; // typed by the user
    let friends = 3; // typed by the user
    let share = bill / friends;
    show(share);
  24. 24.⚙️ What number does this app show?
    let price = 190; // typed by the user
    let off = 30; // typed by the user
    let pay = price - off;
    show(pay);
  25. 25.Which of these is an output? (a) tapping a button (b) taking a photo (c) a buzz (vibration) (d) adding up a bill
  26. 26.True or false: taking a photo is processing. (a) True (b) False
  27. 27.True or false: working out a tip is an input. (a) True (b) False
  28. 28.⚙️ In an app, is tapping a button an input, processing or an output? (a) output (b) input (c) processing
  29. 29.🔍 Which is the odd one out? (a) typing your age (b) taking a photo (c) working out a tip (d) tapping a button
  30. 30.True or false: checking a password is an input. (a) False (b) True
  31. 31.🔍 Which is the odd one out? (a) adding up a bill (b) a beep sound (c) sorting the scores (d) working out a tip
  32. 32.⚙️ In an app, is adding up a bill an input, processing or an output? (a) input (b) output (c) processing
  33. 33.True or false: adding up a bill is an output. (a) True (b) False
  34. 34.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 430; // 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 3 (c) line 1 (d) line 4
  35. 35.True or false: a pop-up message is an output. (a) False (b) True
  36. 36.🔍 Which is the odd one out? (a) a pop-up message (b) typing your age (c) taking a photo (d) speaking a command
  37. 37.⚙️ Which line does the processing (works out the answer)?
    line 1: let bill = 185; // 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 1 (c) line 3 (d) line 2
  38. 38.🔍 Which is the odd one out? (a) sorting the scores (b) tapping a button (c) adding up a bill (d) checking a password
  39. 39.⚙️ Which line does the processing (works out the answer)?
    line 1: let price = 45; // 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 4 (c) line 2 (d) line 1
  40. 40.⚙️ What number does this app show?
    let bill = 125; // typed by the user
    let friends = 5; // typed by the user
    let share = bill / friends;
    show(share);

Answer key

  1. typing your age
  2. 11000
  3. line 3
  4. True
  5. processing
  6. line 3
  7. 180
  8. line 3
  9. line 2
  10. line 3
  11. line 3
  12. line 2
  13. line 2
  14. True
  15. line 3
  16. False
  17. line 2
  18. output
  19. taking a photo
  20. checking a password
  21. 54
  22. a result on screen
  23. 63
  24. 160
  25. a buzz (vibration)
  26. False
  27. False
  28. input
  29. working out a tip
  30. False
  31. a beep sound
  32. processing
  33. False
  34. line 3
  35. True
  36. a pop-up message
  37. line 3
  38. tapping a button
  39. line 3
  40. 25

Free app development lessons, practice and worksheets at talentjr.in/app-development-for-students