← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. working out a tip
  4. False
  5. output
  6. sorting the scores
  7. adding up a bill
  8. input
  9. line 3
  10. False
  11. 52
  12. 520
  13. True
  14. line 2
  15. False
  16. working out a tip
  17. 160
  18. a pop-up message
  19. line 3
  20. True
  21. line 3
  22. 100
  23. a result on screen
  24. line 3
  25. line 3
  26. processing
  27. processing
  28. input
  29. 500
  30. line 3
  31. 180
  32. False
  33. adding up a bill
  34. False
  35. 50
  36. line 3
  37. line 2
  38. True
  39. a buzz (vibration)
  40. input

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