← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. 43
  3. input
  4. line 2
  5. processing
  6. sorting the scores
  7. checking a password
  8. typing your age
  9. line 2
  10. line 3
  11. 320
  12. line 2
  13. line 3
  14. 300
  15. processing
  16. a buzz (vibration)
  17. False
  18. line 3
  19. False
  20. sorting the scores
  21. 90
  22. taking a photo
  23. 300
  24. input
  25. tapping a button
  26. 14000
  27. 18
  28. line 3
  29. 110
  30. line 3
  31. output
  32. output
  33. taking a photo
  34. True
  35. working out a tip
  36. False
  37. 20
  38. False
  39. False
  40. 29

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