← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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