← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. taking a photo
  3. line 2
  4. line 3
  5. working out a tip
  6. 70
  7. True
  8. output
  9. a result on screen
  10. line 3
  11. 7000
  12. input
  13. True
  14. False
  15. line 3
  16. True
  17. 550
  18. 120
  19. input
  20. 15000
  21. line 3
  22. tapping a button
  23. a buzz (vibration)
  24. typing your age
  25. True
  26. processing
  27. speaking a command
  28. 170
  29. False
  30. line 2
  31. processing
  32. output
  33. False
  34. line 3
  35. line 2
  36. a result on screen
  37. 14000
  38. a buzz (vibration)
  39. line 3
  40. line 3

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