← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. line 3
  3. 4000
  4. checking a password
  5. 440
  6. line 3
  7. line 2
  8. False
  9. input
  10. 56
  11. adding up a bill
  12. 3000
  13. False
  14. line 3
  15. sorting the scores
  16. speaking a command
  17. False
  18. 320
  19. False
  20. a pop-up message
  21. line 3
  22. 15000
  23. typing your age
  24. line 3
  25. line 3
  26. line 3
  27. adding up a bill
  28. 125
  29. working out a tip
  30. line 2
  31. line 2
  32. a beep sound
  33. line 3
  34. False
  35. 340
  36. line 3
  37. input
  38. True
  39. line 3
  40. line 3

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