← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 33
  3. line 3
  4. 420
  5. False
  6. line 3
  7. taking a photo
  8. output
  9. False
  10. line 3
  11. True
  12. 180
  13. processing
  14. False
  15. line 3
  16. 60
  17. line 3
  18. line 3
  19. speaking a command
  20. output
  21. checking a password
  22. speaking a command
  23. 20
  24. line 2
  25. input
  26. False
  27. line 3
  28. 5000
  29. True
  30. a pop-up message
  31. 180
  32. line 3
  33. input
  34. True
  35. line 3
  36. output
  37. line 3
  38. processing
  39. line 3
  40. True

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