← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. False
  3. working out a tip
  4. processing
  5. 14000
  6. a beep sound
  7. 23
  8. line 3
  9. checking a password
  10. 60
  11. 310
  12. False
  13. processing
  14. input
  15. True
  16. processing
  17. speaking a command
  18. 15
  19. line 3
  20. True
  21. True
  22. adding up a bill
  23. taking a photo
  24. tapping a button
  25. input
  26. line 3
  27. working out a tip
  28. checking a password
  29. 150
  30. 150
  31. 49
  32. output
  33. False
  34. input
  35. a beep sound
  36. line 3
  37. True
  38. True
  39. 140
  40. a pop-up message

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