← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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