← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. False
  3. typing your age
  4. tapping a button
  5. 15000
  6. 200
  7. output
  8. True
  9. processing
  10. input
  11. 36
  12. line 3
  13. line 2
  14. line 3
  15. line 3
  16. a beep sound
  17. a pop-up message
  18. working out a tip
  19. processing
  20. a pop-up message
  21. True
  22. typing your age
  23. 210
  24. 10000
  25. processing
  26. True
  27. input
  28. input
  29. False
  30. 560
  31. 540
  32. False
  33. line 3
  34. adding up a bill
  35. processing
  36. True
  37. adding up a bill
  38. 325
  39. True
  40. line 3

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