← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. processing
  3. False
  4. False
  5. working out a tip
  6. a pop-up message
  7. a beep sound
  8. adding up a bill
  9. input
  10. True
  11. taking a photo
  12. line 2
  13. input
  14. adding up a bill
  15. line 3
  16. tapping a button
  17. True
  18. 100
  19. processing
  20. line 3
  21. 540
  22. 120
  23. line 3
  24. line 3
  25. output
  26. 320
  27. a buzz (vibration)
  28. 370
  29. 40
  30. 8000
  31. 30
  32. typing your age
  33. input
  34. 52
  35. 105
  36. input
  37. sorting the scores
  38. 70
  39. 210
  40. 190

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