← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 180
  2. True
  3. output
  4. input
  5. line 2
  6. line 3
  7. line 3
  8. speaking a command
  9. True
  10. False
  11. 90
  12. 100
  13. True
  14. True
  15. 170
  16. a result on screen
  17. input
  18. 5000
  19. line 3
  20. a beep sound
  21. line 3
  22. speaking a command
  23. a pop-up message
  24. False
  25. a buzz (vibration)
  26. a buzz (vibration)
  27. taking a photo
  28. False
  29. line 2
  30. True
  31. working out a tip
  32. taking a photo
  33. 2000
  34. line 3
  35. tapping a button
  36. a pop-up message
  37. line 3
  38. sorting the scores
  39. sorting the scores
  40. 7000

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