← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. output
  4. True
  5. line 3
  6. working out a tip
  7. False
  8. True
  9. 225
  10. False
  11. sorting the scores
  12. speaking a command
  13. 330
  14. working out a tip
  15. False
  16. line 2
  17. a buzz (vibration)
  18. output
  19. typing your age
  20. 56
  21. a buzz (vibration)
  22. 150
  23. 370
  24. 540
  25. line 3
  26. 8000
  27. processing
  28. 2000
  29. line 3
  30. 15000
  31. 49
  32. processing
  33. input
  34. a result on screen
  35. 410
  36. tapping a button
  37. 45
  38. processing
  39. 10
  40. True

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