← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. line 3
  3. False
  4. sorting the scores
  5. 480
  6. adding up a bill
  7. line 2
  8. False
  9. line 3
  10. output
  11. input
  12. input
  13. tapping a button
  14. processing
  15. 12000
  16. 65
  17. a beep sound
  18. line 3
  19. typing your age
  20. line 2
  21. False
  22. 11000
  23. line 3
  24. line 2
  25. 400
  26. 280
  27. 200
  28. False
  29. line 3
  30. tapping a button
  31. line 3
  32. working out a tip
  33. 150
  34. False
  35. input
  36. typing your age
  37. 225
  38. checking a password
  39. 100
  40. output

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