← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 250
  2. line 3
  3. True
  4. True
  5. a beep sound
  6. True
  7. output
  8. True
  9. 80
  10. adding up a bill
  11. 10000
  12. line 2
  13. line 2
  14. adding up a bill
  15. False
  16. speaking a command
  17. line 2
  18. checking a password
  19. tapping a button
  20. working out a tip
  21. line 3
  22. 74
  23. 11000
  24. 120
  25. line 3
  26. line 3
  27. 400
  28. False
  29. True
  30. 460
  31. 420
  32. processing
  33. taking a photo
  34. False
  35. line 3
  36. processing
  37. working out a tip
  38. input
  39. True
  40. input

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