← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 100
  3. speaking a command
  4. True
  5. 14000
  6. output
  7. 120
  8. processing
  9. False
  10. line 3
  11. line 3
  12. False
  13. output
  14. 12000
  15. input
  16. 120
  17. True
  18. adding up a bill
  19. a result on screen
  20. a beep sound
  21. 180
  22. True
  23. 80
  24. line 2
  25. taking a photo
  26. line 3
  27. 11000
  28. 450
  29. typing your age
  30. True
  31. output
  32. typing your age
  33. line 3
  34. True
  35. 2000
  36. line 3
  37. checking a password
  38. input
  39. 7000
  40. 200

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