← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. processing
  3. line 3
  4. 5000
  5. speaking a command
  6. 2000
  7. output
  8. 400
  9. adding up a bill
  10. 340
  11. output
  12. line 3
  13. a buzz (vibration)
  14. True
  15. sorting the scores
  16. line 3
  17. 510
  18. tapping a button
  19. 160
  20. 15000
  21. 190
  22. line 3
  23. line 3
  24. line 3
  25. a buzz (vibration)
  26. False
  27. False
  28. 80
  29. typing your age
  30. line 2
  31. True
  32. 13000
  33. output
  34. processing
  35. working out a tip
  36. 8000
  37. 370
  38. working out a tip
  39. line 3
  40. 90

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