← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. False
  3. typing your age
  4. line 3
  5. 4000
  6. line 3
  7. input
  8. a pop-up message
  9. output
  10. 190
  11. adding up a bill
  12. True
  13. line 2
  14. 26
  15. speaking a command
  16. True
  17. output
  18. line 2
  19. line 3
  20. output
  21. output
  22. line 3
  23. processing
  24. 330
  25. line 3
  26. line 2
  27. adding up a bill
  28. processing
  29. True
  30. True
  31. sorting the scores
  32. 410
  33. input
  34. processing
  35. 260
  36. True
  37. processing
  38. a buzz (vibration)
  39. False
  40. 460

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