← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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