← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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