← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. working out a tip
  3. False
  4. True
  5. 180
  6. 8000
  7. a result on screen
  8. sorting the scores
  9. input
  10. checking a password
  11. 100
  12. 320
  13. False
  14. 2000
  15. False
  16. 60
  17. tapping a button
  18. line 3
  19. 65
  20. a buzz (vibration)
  21. 330
  22. sorting the scores
  23. 74
  24. 520
  25. typing your age
  26. 50
  27. line 3
  28. line 2
  29. 15000
  30. False
  31. adding up a bill
  32. line 2
  33. 300
  34. 43
  35. a pop-up message
  36. processing
  37. line 3
  38. 4000
  39. 380
  40. typing your age

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