← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 60
  2. input
  3. line 2
  4. adding up a bill
  5. 540
  6. line 3
  7. False
  8. 180
  9. a beep sound
  10. False
  11. False
  12. True
  13. line 3
  14. 120
  15. 300
  16. line 3
  17. line 3
  18. 250
  19. processing
  20. processing
  21. adding up a bill
  22. True
  23. a pop-up message
  24. typing your age
  25. line 3
  26. sorting the scores
  27. 480
  28. taking a photo
  29. output
  30. 7000
  31. processing
  32. input
  33. typing your age
  34. a result on screen
  35. 30
  36. a buzz (vibration)
  37. line 2
  38. working out a tip
  39. a beep sound
  40. line 3

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