← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 23
  3. typing your age
  4. a buzz (vibration)
  5. a result on screen
  6. tapping a button
  7. output
  8. 3000
  9. True
  10. line 2
  11. line 2
  12. line 2
  13. 6000
  14. False
  15. output
  16. True
  17. input
  18. taking a photo
  19. 490
  20. a buzz (vibration)
  21. False
  22. False
  23. 11
  24. tapping a button
  25. sorting the scores
  26. processing
  27. input
  28. 200
  29. line 3
  30. True
  31. 30
  32. 125
  33. line 3
  34. 490
  35. 14000
  36. 280
  37. False
  38. 130
  39. 25
  40. 24

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