← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. tapping a button
  2. False
  3. 31
  4. 210
  5. line 3
  6. line 2
  7. adding up a bill
  8. processing
  9. typing your age
  10. processing
  11. a result on screen
  12. input
  13. speaking a command
  14. True
  15. 320
  16. sorting the scores
  17. line 3
  18. line 3
  19. a buzz (vibration)
  20. line 3
  21. a buzz (vibration)
  22. speaking a command
  23. 80
  24. taking a photo
  25. 240
  26. input
  27. line 3
  28. False
  29. sorting the scores
  30. taking a photo
  31. False
  32. line 3
  33. line 3
  34. line 3
  35. a beep sound
  36. True
  37. line 3
  38. working out a tip
  39. line 3
  40. True

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