← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. line 3
  3. input
  4. adding up a bill
  5. input
  6. 350
  7. 300
  8. a buzz (vibration)
  9. line 3
  10. False
  11. 2000
  12. True
  13. taking a photo
  14. typing your age
  15. line 3
  16. 130
  17. processing
  18. 150
  19. a beep sound
  20. tapping a button
  21. output
  22. line 2
  23. True
  24. adding up a bill
  25. input
  26. a result on screen
  27. 11
  28. line 3
  29. 120
  30. output
  31. 38
  32. processing
  33. line 3
  34. line 3
  35. 78
  36. a buzz (vibration)
  37. 210
  38. sorting the scores
  39. output
  40. speaking a command

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