← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. taking a photo
  2. False
  3. a result on screen
  4. input
  5. a beep sound
  6. processing
  7. a result on screen
  8. 59
  9. 3000
  10. input
  11. a buzz (vibration)
  12. processing
  13. a pop-up message
  14. speaking a command
  15. processing
  16. 26
  17. line 3
  18. line 3
  19. line 3
  20. a pop-up message
  21. False
  22. 80
  23. line 3
  24. line 3
  25. 14
  26. output
  27. tapping a button
  28. False
  29. line 3
  30. 570
  31. typing your age
  32. line 3
  33. 8000
  34. True
  35. typing your age
  36. sorting the scores
  37. False
  38. output
  39. 54
  40. 4000

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