← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 210
  3. a buzz (vibration)
  4. input
  5. line 3
  6. line 3
  7. input
  8. True
  9. line 2
  10. 470
  11. 2000
  12. 520
  13. 310
  14. 480
  15. processing
  16. line 3
  17. line 3
  18. line 2
  19. False
  20. output
  21. 28
  22. line 3
  23. False
  24. a pop-up message
  25. line 3
  26. output
  27. True
  28. line 2
  29. line 2
  30. False
  31. sorting the scores
  32. line 2
  33. line 3
  34. adding up a bill
  35. 47
  36. 12000
  37. 8000
  38. processing
  39. line 3
  40. working out a tip

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