← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 200
  3. False
  4. a result on screen
  5. output
  6. taking a photo
  7. True
  8. line 3
  9. adding up a bill
  10. checking a password
  11. 210
  12. 120
  13. 15000
  14. line 3
  15. True
  16. line 3
  17. False
  18. adding up a bill
  19. processing
  20. 460
  21. input
  22. 11000
  23. 330
  24. 69
  25. 38
  26. False
  27. line 2
  28. line 3
  29. True
  30. input
  31. 150
  32. output
  33. line 3
  34. typing your age
  35. False
  36. typing your age
  37. 6000
  38. a beep sound
  39. 19
  40. True

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