← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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