← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 36
  3. line 3
  4. 13
  5. 13000
  6. a result on screen
  7. True
  8. line 3
  9. a beep sound
  10. input
  11. 90
  12. 30
  13. adding up a bill
  14. a buzz (vibration)
  15. True
  16. line 3
  17. 25
  18. line 3
  19. 320
  20. False
  21. 6000
  22. False
  23. tapping a button
  24. 69
  25. True
  26. 80
  27. line 3
  28. False
  29. 190
  30. line 3
  31. line 3
  32. True
  33. False
  34. line 2
  35. 430
  36. processing
  37. 44
  38. 11000
  39. line 3
  40. output

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