← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. sorting the scores
  2. input
  3. 12
  4. line 3
  5. False
  6. False
  7. 430
  8. output
  9. input
  10. line 3
  11. processing
  12. True
  13. False
  14. working out a tip
  15. 300
  16. 450
  17. True
  18. line 3
  19. processing
  20. 34
  21. output
  22. line 3
  23. 540
  24. working out a tip
  25. a beep sound
  26. checking a password
  27. line 3
  28. 45
  29. a beep sound
  30. 40
  31. output
  32. line 3
  33. line 3
  34. line 3
  35. input
  36. line 3
  37. line 3
  38. adding up a bill
  39. line 3
  40. 41

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