← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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