← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. output
  3. True
  4. typing your age
  5. typing your age
  6. working out a tip
  7. sorting the scores
  8. True
  9. 200
  10. 40
  11. checking a password
  12. 4000
  13. tapping a button
  14. line 2
  15. line 3
  16. line 3
  17. 105
  18. tapping a button
  19. input
  20. 10000
  21. processing
  22. 280
  23. line 3
  24. False
  25. line 3
  26. line 2
  27. input
  28. processing
  29. line 3
  30. sorting the scores
  31. 13
  32. False
  33. output
  34. working out a tip
  35. 120
  36. line 3
  37. line 2
  38. a beep sound
  39. False
  40. line 3

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