← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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