← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 59
  3. line 2
  4. line 3
  5. processing
  6. 225
  7. False
  8. True
  9. adding up a bill
  10. 75
  11. False
  12. adding up a bill
  13. a buzz (vibration)
  14. 240
  15. working out a tip
  16. line 2
  17. input
  18. False
  19. tapping a button
  20. True
  21. line 3
  22. typing your age
  23. False
  24. False
  25. 59
  26. tapping a button
  27. True
  28. 300
  29. 60
  30. 23
  31. 390
  32. True
  33. line 3
  34. 300
  35. False
  36. checking a password
  37. 11000
  38. 9000
  39. 130
  40. processing

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