← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. processing
  3. 15000
  4. 10000
  5. line 3
  6. input
  7. 50
  8. a buzz (vibration)
  9. line 2
  10. True
  11. line 3
  12. 400
  13. False
  14. input
  15. taking a photo
  16. line 3
  17. 71
  18. input
  19. processing
  20. output
  21. line 3
  22. line 3
  23. a beep sound
  24. speaking a command
  25. line 3
  26. working out a tip
  27. speaking a command
  28. False
  29. line 3
  30. a result on screen
  31. 14
  32. line 3
  33. line 3
  34. processing
  35. 52
  36. line 3
  37. output
  38. 430
  39. typing your age
  40. 2000

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