← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. line 3
  4. line 3
  5. 150
  6. False
  7. 470
  8. False
  9. line 3
  10. line 3
  11. line 3
  12. True
  13. working out a tip
  14. sorting the scores
  15. False
  16. a buzz (vibration)
  17. 240
  18. False
  19. a buzz (vibration)
  20. processing
  21. working out a tip
  22. True
  23. checking a password
  24. speaking a command
  25. processing
  26. 52
  27. a beep sound
  28. input
  29. checking a password
  30. output
  31. True
  32. line 2
  33. 71
  34. line 2
  35. 4000
  36. line 3
  37. output
  38. 410
  39. adding up a bill
  40. line 2

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