← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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