← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. line 3
  3. 240
  4. False
  5. input
  6. 10000
  7. 16
  8. 79
  9. adding up a bill
  10. line 3
  11. 44
  12. 180
  13. True
  14. 16
  15. input
  16. 360
  17. 100
  18. a pop-up message
  19. a buzz (vibration)
  20. 5000
  21. taking a photo
  22. processing
  23. input
  24. a buzz (vibration)
  25. False
  26. True
  27. 6000
  28. output
  29. 65
  30. 400
  31. 40
  32. line 2
  33. line 2
  34. 130
  35. line 3
  36. False
  37. sorting the scores
  38. line 3
  39. a result on screen
  40. a beep sound

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