← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 550
  2. False
  3. line 3
  4. output
  5. a buzz (vibration)
  6. working out a tip
  7. processing
  8. line 2
  9. True
  10. input
  11. input
  12. taking a photo
  13. line 3
  14. True
  15. 120
  16. True
  17. 18
  18. 22
  19. line 3
  20. a beep sound
  21. tapping a button
  22. line 3
  23. typing your age
  24. 150
  25. 170
  26. line 3
  27. 27
  28. a pop-up message
  29. 100
  30. input
  31. 210
  32. output
  33. processing
  34. a pop-up message
  35. checking a password
  36. 390
  37. speaking a command
  38. processing
  39. 550
  40. line 2

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