← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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