← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 20
  2. True
  3. 21
  4. sorting the scores
  5. True
  6. adding up a bill
  7. a result on screen
  8. line 3
  9. line 3
  10. input
  11. a beep sound
  12. False
  13. True
  14. working out a tip
  15. False
  16. 210
  17. True
  18. checking a password
  19. sorting the scores
  20. False
  21. tapping a button
  22. tapping a button
  23. adding up a bill
  24. 40
  25. 31
  26. output
  27. 410
  28. 120
  29. False
  30. output
  31. speaking a command
  32. True
  33. 160
  34. line 3
  35. typing your age
  36. taking a photo
  37. taking a photo
  38. processing
  39. 60
  40. line 3

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