← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 180
  2. processing
  3. 38
  4. False
  5. a buzz (vibration)
  6. adding up a bill
  7. 9000
  8. taking a photo
  9. working out a tip
  10. input
  11. 5000
  12. 140
  13. line 2
  14. 45
  15. line 3
  16. output
  17. line 2
  18. line 3
  19. False
  20. line 2
  21. True
  22. 570
  23. typing your age
  24. False
  25. False
  26. line 3
  27. False
  28. sorting the scores
  29. True
  30. processing
  31. 80
  32. typing your age
  33. sorting the scores
  34. line 3
  35. output
  36. line 3
  37. output
  38. 80
  39. line 3
  40. line 3

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