← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. output
  3. input
  4. 120
  5. checking a password
  6. False
  7. a pop-up message
  8. working out a tip
  9. input
  10. typing your age
  11. 450
  12. False
  13. sorting the scores
  14. processing
  15. adding up a bill
  16. line 3
  17. checking a password
  18. a result on screen
  19. line 3
  20. line 3
  21. 475
  22. 240
  23. 420
  24. True
  25. 340
  26. True
  27. processing
  28. line 3
  29. True
  30. taking a photo
  31. 12000
  32. a result on screen
  33. input
  34. 51
  35. 13000
  36. a buzz (vibration)
  37. tapping a button
  38. output
  39. line 3
  40. a pop-up message

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