← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 39
  2. 120
  3. 270
  4. a result on screen
  5. a pop-up message
  6. processing
  7. line 3
  8. speaking a command
  9. True
  10. line 3
  11. input
  12. 325
  13. False
  14. adding up a bill
  15. input
  16. 13000
  17. line 2
  18. line 3
  19. working out a tip
  20. tapping a button
  21. 440
  22. 8000
  23. line 3
  24. 11000
  25. a pop-up message
  26. processing
  27. 2000
  28. line 3
  29. checking a password
  30. output
  31. output
  32. working out a tip
  33. input
  34. line 3
  35. 73
  36. line 2
  37. typing your age
  38. adding up a bill
  39. False
  40. sorting the scores

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