← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 570
  2. input
  3. a pop-up message
  4. input
  5. processing
  6. line 3
  7. False
  8. line 3
  9. 225
  10. 3000
  11. 50
  12. checking a password
  13. line 3
  14. 300
  15. True
  16. output
  17. processing
  18. adding up a bill
  19. 20
  20. 80
  21. line 3
  22. line 3
  23. line 3
  24. processing
  25. 13000
  26. a pop-up message
  27. typing your age
  28. 11000
  29. output
  30. 560
  31. line 3
  32. line 3
  33. True
  34. 200
  35. 200
  36. output
  37. 370
  38. a beep sound
  39. 6000
  40. speaking a command

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