← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 560
  2. tapping a button
  3. a pop-up message
  4. line 3
  5. False
  6. 240
  7. 100
  8. 220
  9. output
  10. processing
  11. line 3
  12. output
  13. 470
  14. output
  15. a result on screen
  16. False
  17. 340
  18. False
  19. sorting the scores
  20. line 3
  21. adding up a bill
  22. 53
  23. line 2
  24. 36
  25. 24
  26. line 3
  27. a buzz (vibration)
  28. 9000
  29. typing your age
  30. False
  31. 270
  32. line 3
  33. 60
  34. 350
  35. input
  36. 420
  37. True
  38. line 3
  39. False
  40. line 2

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