← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 30
  2. line 3
  3. True
  4. typing your age
  5. 120
  6. a buzz (vibration)
  7. checking a password
  8. a result on screen
  9. False
  10. line 3
  11. tapping a button
  12. speaking a command
  13. 67
  14. 8000
  15. adding up a bill
  16. False
  17. 45
  18. speaking a command
  19. a result on screen
  20. taking a photo
  21. line 3
  22. 410
  23. True
  24. 260
  25. line 3
  26. typing your age
  27. False
  28. 13000
  29. sorting the scores
  30. line 3
  31. False
  32. 24
  33. False
  34. 480
  35. 430
  36. input
  37. 140
  38. output
  39. output
  40. line 3

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