← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. processing
  3. line 2
  4. 23
  5. taking a photo
  6. True
  7. sorting the scores
  8. a result on screen
  9. tapping a button
  10. 570
  11. checking a password
  12. line 3
  13. checking a password
  14. input
  15. input
  16. typing your age
  17. 570
  18. 2000
  19. output
  20. working out a tip
  21. processing
  22. line 3
  23. line 3
  24. 4000
  25. processing
  26. True
  27. a pop-up message
  28. output
  29. output
  30. line 3
  31. 270
  32. a buzz (vibration)
  33. line 2
  34. line 2
  35. output
  36. typing your age
  37. adding up a bill
  38. sorting the scores
  39. line 3
  40. 375

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