← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. 280
  3. sorting the scores
  4. output
  5. speaking a command
  6. output
  7. adding up a bill
  8. 70
  9. False
  10. True
  11. output
  12. 80
  13. input
  14. 480
  15. a result on screen
  16. 210
  17. a result on screen
  18. working out a tip
  19. line 3
  20. 16
  21. checking a password
  22. a beep sound
  23. 520
  24. 420
  25. line 3
  26. input
  27. line 2
  28. checking a password
  29. True
  30. speaking a command
  31. input
  32. False
  33. typing your age
  34. working out a tip
  35. 150
  36. a buzz (vibration)
  37. 570
  38. input
  39. False
  40. 300

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