← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. True
  3. line 3
  4. processing
  5. input
  6. speaking a command
  7. a pop-up message
  8. checking a password
  9. 60
  10. processing
  11. line 3
  12. 180
  13. 75
  14. False
  15. line 3
  16. output
  17. False
  18. typing your age
  19. 70
  20. tapping a button
  21. 80
  22. False
  23. 25
  24. output
  25. True
  26. False
  27. line 2
  28. processing
  29. 175
  30. a pop-up message
  31. taking a photo
  32. input
  33. speaking a command
  34. input
  35. 560
  36. 300
  37. line 3
  38. a result on screen
  39. True
  40. 90

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