← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a result on screen
  3. 350
  4. output
  5. line 3
  6. True
  7. False
  8. False
  9. line 2
  10. output
  11. line 3
  12. 2000
  13. 13
  14. 250
  15. True
  16. 220
  17. checking a password
  18. input
  19. a beep sound
  20. 440
  21. False
  22. line 3
  23. True
  24. taking a photo
  25. checking a password
  26. line 2
  27. processing
  28. line 3
  29. processing
  30. sorting the scores
  31. line 3
  32. tapping a button
  33. line 2
  34. input
  35. 9000
  36. typing your age
  37. line 3
  38. a buzz (vibration)
  39. 60
  40. True

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