← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 380
  2. True
  3. line 2
  4. sorting the scores
  5. tapping a button
  6. 510
  7. a result on screen
  8. False
  9. 120
  10. input
  11. line 3
  12. output
  13. a pop-up message
  14. line 3
  15. 200
  16. 105
  17. 200
  18. processing
  19. 7000
  20. output
  21. 120
  22. checking a password
  23. 210
  24. True
  25. 15000
  26. taking a photo
  27. True
  28. a buzz (vibration)
  29. 300
  30. 9000
  31. False
  32. speaking a command
  33. typing your age
  34. line 2
  35. 18
  36. 220
  37. False
  38. 425
  39. line 3
  40. 14000

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