← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 4000
  3. True
  4. line 3
  5. a buzz (vibration)
  6. line 3
  7. 60
  8. 20
  9. sorting the scores
  10. taking a photo
  11. speaking a command
  12. line 2
  13. input
  14. True
  15. a beep sound
  16. line 3
  17. a result on screen
  18. False
  19. False
  20. 180
  21. taking a photo
  22. line 2
  23. 135
  24. input
  25. 13000
  26. True
  27. line 3
  28. line 2
  29. adding up a bill
  30. a buzz (vibration)
  31. tapping a button
  32. 150
  33. 14000
  34. True
  35. a beep sound
  36. line 3
  37. 480
  38. processing
  39. line 3
  40. 360

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