← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. processing
  3. line 3
  4. output
  5. a result on screen
  6. line 3
  7. speaking a command
  8. taking a photo
  9. a beep sound
  10. True
  11. line 2
  12. processing
  13. a beep sound
  14. line 3
  15. line 3
  16. True
  17. line 2
  18. False
  19. 8000
  20. line 3
  21. sorting the scores
  22. a buzz (vibration)
  23. True
  24. 400
  25. 40
  26. 175
  27. line 2
  28. 76
  29. line 2
  30. 160
  31. typing your age
  32. line 3
  33. 2000
  34. line 3
  35. line 3
  36. a pop-up message
  37. True
  38. 13000
  39. 220
  40. line 2

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