← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. line 3
  3. 350
  4. False
  5. a result on screen
  6. line 3
  7. working out a tip
  8. line 2
  9. 75
  10. line 3
  11. line 3
  12. input
  13. True
  14. a beep sound
  15. line 3
  16. True
  17. a pop-up message
  18. sorting the scores
  19. 140
  20. a beep sound
  21. 49
  22. adding up a bill
  23. line 3
  24. line 2
  25. processing
  26. 39
  27. True
  28. 17
  29. speaking a command
  30. False
  31. False
  32. False
  33. tapping a button
  34. 330
  35. tapping a button
  36. line 3
  37. True
  38. 240
  39. False
  40. input

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