← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. typing your age
  3. 220
  4. False
  5. input
  6. output
  7. output
  8. 3000
  9. a result on screen
  10. 140
  11. a result on screen
  12. a buzz (vibration)
  13. 550
  14. a pop-up message
  15. sorting the scores
  16. checking a password
  17. tapping a button
  18. 15000
  19. taking a photo
  20. processing
  21. False
  22. line 3
  23. line 3
  24. False
  25. 14000
  26. 320
  27. True
  28. 58
  29. working out a tip
  30. 160
  31. checking a password
  32. False
  33. 130
  34. line 3
  35. False
  36. False
  37. True
  38. speaking a command
  39. line 2
  40. line 2

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