← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 70
  2. 15000
  3. checking a password
  4. output
  5. 7000
  6. input
  7. input
  8. True
  9. a result on screen
  10. 4000
  11. 250
  12. False
  13. tapping a button
  14. input
  15. output
  16. False
  17. sorting the scores
  18. working out a tip
  19. processing
  20. line 2
  21. line 3
  22. line 3
  23. 120
  24. a beep sound
  25. 10000
  26. line 2
  27. 13000
  28. False
  29. line 3
  30. 180
  31. typing your age
  32. tapping a button
  33. line 3
  34. False
  35. True
  36. 140
  37. 330
  38. 77
  39. True
  40. line 3

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