← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. tapping a button
  3. processing
  4. line 3
  5. 46
  6. output
  7. False
  8. sorting the scores
  9. a result on screen
  10. True
  11. 14000
  12. line 3
  13. line 3
  14. processing
  15. 300
  16. 105
  17. input
  18. a result on screen
  19. tapping a button
  20. 150
  21. a buzz (vibration)
  22. True
  23. False
  24. False
  25. line 3
  26. False
  27. 4000
  28. False
  29. line 3
  30. False
  31. a beep sound
  32. line 3
  33. taking a photo
  34. sorting the scores
  35. line 2
  36. speaking a command
  37. working out a tip
  38. False
  39. line 3
  40. line 3

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