← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. processing
  3. line 2
  4. False
  5. False
  6. working out a tip
  7. 28
  8. tapping a button
  9. adding up a bill
  10. 15000
  11. line 3
  12. line 3
  13. output
  14. False
  15. a pop-up message
  16. line 3
  17. False
  18. 340
  19. True
  20. input
  21. 12000
  22. input
  23. 225
  24. 410
  25. line 3
  26. line 3
  27. line 3
  28. output
  29. 375
  30. line 3
  31. line 3
  32. 250
  33. speaking a command
  34. 470
  35. line 3
  36. adding up a bill
  37. False
  38. 100
  39. 70
  40. 46

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