← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. False
  3. processing
  4. 250
  5. 290
  6. False
  7. 6000
  8. 12000
  9. taking a photo
  10. sorting the scores
  11. speaking a command
  12. output
  13. False
  14. processing
  15. 15
  16. 4000
  17. speaking a command
  18. a pop-up message
  19. 71
  20. working out a tip
  21. line 3
  22. True
  23. a result on screen
  24. 375
  25. False
  26. True
  27. 190
  28. processing
  29. 160
  30. typing your age
  31. line 3
  32. sorting the scores
  33. line 3
  34. line 3
  35. line 3
  36. checking a password
  37. input
  38. input
  39. 19
  40. False

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