← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 32
  2. line 3
  3. 14000
  4. 200
  5. 240
  6. 76
  7. output
  8. True
  9. a beep sound
  10. typing your age
  11. False
  12. line 3
  13. a result on screen
  14. processing
  15. a buzz (vibration)
  16. False
  17. input
  18. line 3
  19. tapping a button
  20. line 3
  21. 73
  22. 62
  23. False
  24. True
  25. False
  26. 120
  27. True
  28. processing
  29. speaking a command
  30. False
  31. a pop-up message
  32. line 3
  33. True
  34. False
  35. typing your age
  36. 275
  37. input
  38. 10000
  39. 15
  40. line 3

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