← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. taking a photo
  3. tapping a button
  4. 30
  5. checking a password
  6. True
  7. 11000
  8. a buzz (vibration)
  9. 310
  10. line 3
  11. line 3
  12. line 3
  13. processing
  14. working out a tip
  15. 26
  16. processing
  17. line 2
  18. False
  19. 41
  20. output
  21. adding up a bill
  22. 15000
  23. line 2
  24. input
  25. line 3
  26. False
  27. 29
  28. checking a password
  29. 4000
  30. line 3
  31. 420
  32. taking a photo
  33. 51
  34. line 3
  35. 49
  36. a pop-up message
  37. line 3
  38. typing your age
  39. False
  40. 7000

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