← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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