← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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