← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. a beep sound
  3. True
  4. 165
  5. line 3
  6. input
  7. output
  8. typing your age
  9. 40
  10. output
  11. False
  12. 270
  13. True
  14. taking a photo
  15. line 3
  16. 13000
  17. processing
  18. 22
  19. line 2
  20. adding up a bill
  21. True
  22. 50
  23. processing
  24. line 3
  25. checking a password
  26. a pop-up message
  27. typing your age
  28. 41
  29. tapping a button
  30. a buzz (vibration)
  31. False
  32. 285
  33. output
  34. speaking a command
  35. False
  36. 340
  37. 60
  38. sorting the scores
  39. sorting the scores
  40. True

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