← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 530
  3. line 2
  4. line 3
  5. processing
  6. 9000
  7. input
  8. sorting the scores
  9. 340
  10. input
  11. 20
  12. a result on screen
  13. line 3
  14. checking a password
  15. 57
  16. working out a tip
  17. a beep sound
  18. 200
  19. a result on screen
  20. speaking a command
  21. 3000
  22. line 3
  23. a pop-up message
  24. 540
  25. 430
  26. input
  27. line 2
  28. adding up a bill
  29. output
  30. typing your age
  31. line 3
  32. line 3
  33. output
  34. 480
  35. 375
  36. line 3
  37. 70
  38. 6000
  39. sorting the scores
  40. 250

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