← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a pop-up message
  3. speaking a command
  4. input
  5. adding up a bill
  6. False
  7. 60
  8. 57
  9. input
  10. checking a password
  11. line 2
  12. line 3
  13. 400
  14. a result on screen
  15. sorting the scores
  16. line 3
  17. adding up a bill
  18. a buzz (vibration)
  19. 15000
  20. input
  21. line 2
  22. 240
  23. tapping a button
  24. output
  25. True
  26. line 3
  27. line 3
  28. 4000
  29. 475
  30. 270
  31. 11000
  32. line 3
  33. line 2
  34. False
  35. line 3
  36. line 3
  37. line 3
  38. False
  39. processing
  40. line 2

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