← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 120
  2. a beep sound
  3. checking a password
  4. a pop-up message
  5. line 2
  6. processing
  7. line 3
  8. input
  9. line 3
  10. line 3
  11. input
  12. False
  13. output
  14. False
  15. line 3
  16. 225
  17. a result on screen
  18. line 2
  19. True
  20. True
  21. typing your age
  22. 420
  23. True
  24. 6000
  25. taking a photo
  26. a pop-up message
  27. False
  28. input
  29. tapping a button
  30. 70
  31. False
  32. sorting the scores
  33. line 3
  34. speaking a command
  35. 170
  36. working out a tip
  37. 180
  38. 140
  39. output
  40. speaking a command

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