← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 61
  2. True
  3. False
  4. taking a photo
  5. 440
  6. line 3
  7. False
  8. False
  9. a pop-up message
  10. line 3
  11. line 3
  12. line 3
  13. a beep sound
  14. line 3
  15. sorting the scores
  16. False
  17. line 3
  18. checking a password
  19. 11000
  20. False
  21. line 2
  22. input
  23. line 3
  24. 200
  25. line 3
  26. line 3
  27. 5000
  28. working out a tip
  29. 390
  30. 100
  31. 3000
  32. False
  33. typing your age
  34. line 3
  35. typing your age
  36. output
  37. 14000
  38. line 3
  39. 300
  40. 270

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