← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. True
  3. True
  4. False
  5. speaking a command
  6. input
  7. input
  8. line 3
  9. line 3
  10. input
  11. working out a tip
  12. 480
  13. line 3
  14. True
  15. taking a photo
  16. 42
  17. output
  18. taking a photo
  19. False
  20. typing your age
  21. adding up a bill
  22. 120
  23. 150
  24. a buzz (vibration)
  25. a beep sound
  26. 36
  27. processing
  28. line 3
  29. 130
  30. line 3
  31. line 2
  32. 12000
  33. working out a tip
  34. typing your age
  35. line 3
  36. 550
  37. 10000
  38. 44
  39. line 3
  40. True

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