← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 300
  2. a result on screen
  3. input
  4. 80
  5. 15000
  6. line 3
  7. 9000
  8. line 3
  9. False
  10. checking a password
  11. processing
  12. True
  13. True
  14. adding up a bill
  15. False
  16. a buzz (vibration)
  17. line 3
  18. processing
  19. processing
  20. True
  21. 3000
  22. line 3
  23. a pop-up message
  24. 28
  25. adding up a bill
  26. a beep sound
  27. True
  28. False
  29. 275
  30. typing your age
  31. True
  32. a pop-up message
  33. processing
  34. checking a password
  35. True
  36. line 3
  37. input
  38. False
  39. True
  40. 440

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