← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. line 3
  3. line 2
  4. 100
  5. checking a password
  6. adding up a bill
  7. processing
  8. sorting the scores
  9. input
  10. line 3
  11. False
  12. 250
  13. typing your age
  14. 20
  15. 400
  16. a beep sound
  17. processing
  18. 440
  19. input
  20. output
  21. tapping a button
  22. False
  23. working out a tip
  24. False
  25. False
  26. a pop-up message
  27. 180
  28. working out a tip
  29. a result on screen
  30. False
  31. False
  32. line 3
  33. True
  34. 15000
  35. checking a password
  36. line 2
  37. a result on screen
  38. line 3
  39. 53
  40. adding up a bill

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