← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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