← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 360
  2. 39
  3. processing
  4. tapping a button
  5. input
  6. a result on screen
  7. sorting the scores
  8. typing your age
  9. False
  10. a pop-up message
  11. 100
  12. 165
  13. True
  14. False
  15. True
  16. line 3
  17. line 3
  18. True
  19. line 2
  20. 280
  21. 14000
  22. 180
  23. 9000
  24. 15000
  25. output
  26. speaking a command
  27. line 3
  28. False
  29. line 3
  30. 400
  31. False
  32. working out a tip
  33. line 3
  34. 59
  35. input
  36. 4000
  37. checking a password
  38. line 3
  39. adding up a bill
  40. output

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