← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. line 2
  3. 41
  4. line 3
  5. 7000
  6. 42
  7. False
  8. 130
  9. 270
  10. input
  11. True
  12. 45
  13. line 2
  14. output
  15. 64
  16. input
  17. processing
  18. output
  19. speaking a command
  20. taking a photo
  21. False
  22. 120
  23. line 3
  24. line 3
  25. output
  26. True
  27. tapping a button
  28. sorting the scores
  29. a result on screen
  30. line 2
  31. working out a tip
  32. 45
  33. taking a photo
  34. line 3
  35. False
  36. 120
  37. 13000
  38. line 3
  39. 56
  40. output

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