← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. 3000
  3. line 2
  4. working out a tip
  5. output
  6. checking a password
  7. a result on screen
  8. line 3
  9. output
  10. 74
  11. sorting the scores
  12. line 3
  13. 2000
  14. a pop-up message
  15. processing
  16. tapping a button
  17. False
  18. input
  19. False
  20. speaking a command
  21. 400
  22. True
  23. line 3
  24. typing your age
  25. output
  26. True
  27. 15000
  28. 77
  29. line 3
  30. checking a password
  31. input
  32. line 2
  33. line 3
  34. True
  35. 450
  36. 280
  37. 510
  38. 13000
  39. a result on screen
  40. output

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