← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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