← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 8000
  2. output
  3. 420
  4. True
  5. line 2
  6. adding up a bill
  7. False
  8. line 3
  9. line 2
  10. 90
  11. checking a password
  12. a buzz (vibration)
  13. typing your age
  14. a pop-up message
  15. output
  16. True
  17. tapping a button
  18. 240
  19. True
  20. a buzz (vibration)
  21. speaking a command
  22. line 3
  23. output
  24. True
  25. 58
  26. True
  27. 74
  28. True
  29. typing your age
  30. True
  31. line 3
  32. line 3
  33. 200
  34. 10000
  35. taking a photo
  36. speaking a command
  37. False
  38. 4000
  39. 38
  40. 165

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