← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. False
  3. line 3
  4. adding up a bill
  5. line 3
  6. output
  7. False
  8. 210
  9. line 2
  10. 44
  11. working out a tip
  12. False
  13. line 3
  14. False
  15. processing
  16. a pop-up message
  17. 4000
  18. checking a password
  19. sorting the scores
  20. tapping a button
  21. a buzz (vibration)
  22. 9000
  23. True
  24. True
  25. False
  26. line 3
  27. speaking a command
  28. line 3
  29. 100
  30. output
  31. line 3
  32. line 2
  33. line 3
  34. processing
  35. 100
  36. 8000
  37. 490
  38. line 3
  39. False
  40. a beep sound

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