← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 210
  3. input
  4. line 3
  5. checking a password
  6. 75
  7. line 3
  8. 500
  9. tapping a button
  10. 60
  11. input
  12. 470
  13. adding up a bill
  14. line 3
  15. line 3
  16. output
  17. 14
  18. taking a photo
  19. taking a photo
  20. 105
  21. 30
  22. a pop-up message
  23. working out a tip
  24. line 3
  25. checking a password
  26. line 2
  27. a result on screen
  28. adding up a bill
  29. line 3
  30. False
  31. line 3
  32. line 2
  33. False
  34. sorting the scores
  35. line 3
  36. 460
  37. working out a tip
  38. line 2
  39. True
  40. False

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