← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. True
  4. adding up a bill
  5. a buzz (vibration)
  6. True
  7. line 2
  8. processing
  9. working out a tip
  10. checking a password
  11. 400
  12. line 3
  13. 140
  14. a pop-up message
  15. 420
  16. output
  17. sorting the scores
  18. line 3
  19. 350
  20. False
  21. processing
  22. 4000
  23. processing
  24. taking a photo
  25. tapping a button
  26. output
  27. 270
  28. 2000
  29. 60
  30. line 3
  31. processing
  32. 280
  33. 65
  34. input
  35. line 3
  36. typing your age
  37. working out a tip
  38. a pop-up message
  39. line 2
  40. line 3

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