← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. sorting the scores
  3. working out a tip
  4. speaking a command
  5. False
  6. True
  7. 225
  8. 60
  9. line 3
  10. a result on screen
  11. line 3
  12. line 3
  13. 20
  14. False
  15. True
  16. typing your age
  17. line 3
  18. True
  19. False
  20. line 3
  21. input
  22. True
  23. line 3
  24. processing
  25. line 3
  26. a beep sound
  27. False
  28. line 2
  29. a beep sound
  30. processing
  31. 150
  32. line 3
  33. 50
  34. line 2
  35. 14
  36. output
  37. False
  38. False
  39. tapping a button
  40. a buzz (vibration)

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