← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 10000
  2. speaking a command
  3. line 3
  4. 45
  5. output
  6. input
  7. 12000
  8. line 3
  9. input
  10. line 2
  11. 6000
  12. 50
  13. line 3
  14. adding up a bill
  15. processing
  16. 70
  17. False
  18. 110
  19. True
  20. a buzz (vibration)
  21. a beep sound
  22. line 3
  23. a beep sound
  24. 190
  25. line 2
  26. taking a photo
  27. 100
  28. 63
  29. 11000
  30. 250
  31. line 2
  32. 360
  33. line 3
  34. line 3
  35. line 3
  36. line 3
  37. False
  38. 54
  39. 480
  40. line 3

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