← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. adding up a bill
  2. line 3
  3. 510
  4. processing
  5. 195
  6. processing
  7. adding up a bill
  8. 120
  9. taking a photo
  10. line 3
  11. tapping a button
  12. 12
  13. line 3
  14. 480
  15. line 2
  16. working out a tip
  17. False
  18. False
  19. output
  20. input
  21. 28
  22. line 3
  23. a result on screen
  24. line 3
  25. input
  26. False
  27. 15000
  28. 180
  29. False
  30. line 2
  31. True
  32. input
  33. line 2
  34. 9000
  35. 12000
  36. sorting the scores
  37. line 3
  38. True
  39. a pop-up message
  40. line 3

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