← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. output
  2. 520
  3. adding up a bill
  4. 14
  5. input
  6. checking a password
  7. line 3
  8. 6000
  9. tapping a button
  10. False
  11. 4000
  12. processing
  13. line 3
  14. line 3
  15. False
  16. tapping a button
  17. input
  18. sorting the scores
  19. False
  20. line 2
  21. line 3
  22. 15000
  23. line 3
  24. False
  25. checking a password
  26. working out a tip
  27. adding up a bill
  28. 90
  29. line 2
  30. output
  31. False
  32. line 3
  33. a result on screen
  34. 90
  35. working out a tip
  36. 2000
  37. a result on screen
  38. a pop-up message
  39. input
  40. False

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