← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. 340
  3. line 3
  4. working out a tip
  5. input
  6. output
  7. output
  8. processing
  9. 15000
  10. sorting the scores
  11. line 3
  12. 12000
  13. a pop-up message
  14. 425
  15. line 3
  16. True
  17. 400
  18. 10000
  19. processing
  20. input
  21. input
  22. line 3
  23. processing
  24. 7000
  25. 210
  26. False
  27. False
  28. a buzz (vibration)
  29. output
  30. line 3
  31. 275
  32. input
  33. True
  34. a result on screen
  35. 62
  36. line 3
  37. line 3
  38. False
  39. a pop-up message
  40. line 2

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