← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. input
  3. a pop-up message
  4. speaking a command
  5. 60
  6. a pop-up message
  7. output
  8. line 3
  9. False
  10. 29
  11. line 3
  12. processing
  13. line 2
  14. line 3
  15. taking a photo
  16. line 2
  17. line 3
  18. line 3
  19. sorting the scores
  20. speaking a command
  21. line 3
  22. output
  23. input
  24. a result on screen
  25. 180
  26. processing
  27. 54
  28. 10000
  29. a beep sound
  30. input
  31. 60
  32. 60
  33. taking a photo
  34. line 3
  35. 66
  36. True
  37. line 3
  38. line 3
  39. False
  40. True

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