← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. working out a tip
  2. taking a photo
  3. 52
  4. input
  5. a buzz (vibration)
  6. line 3
  7. 8000
  8. 150
  9. True
  10. speaking a command
  11. adding up a bill
  12. line 2
  13. 59
  14. checking a password
  15. 350
  16. False
  17. line 3
  18. False
  19. 9000
  20. line 3
  21. sorting the scores
  22. tapping a button
  23. taking a photo
  24. 470
  25. input
  26. 110
  27. line 3
  28. line 3
  29. processing
  30. True
  31. adding up a bill
  32. 285
  33. tapping a button
  34. 14000
  35. line 3
  36. line 3
  37. False
  38. 600
  39. 54
  40. output

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