← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a buzz (vibration)
  2. input
  3. 9000
  4. 10000
  5. 5000
  6. 270
  7. input
  8. typing your age
  9. line 3
  10. line 3
  11. line 3
  12. a beep sound
  13. line 3
  14. 550
  15. adding up a bill
  16. 400
  17. line 3
  18. a result on screen
  19. input
  20. line 3
  21. line 2
  22. 240
  23. 60
  24. sorting the scores
  25. working out a tip
  26. line 3
  27. 11000
  28. line 3
  29. input
  30. 44
  31. 150
  32. line 2
  33. a buzz (vibration)
  34. 60
  35. 6000
  36. False
  37. tapping a button
  38. True
  39. line 2
  40. output

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