← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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