← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. taking a photo
  3. False
  4. True
  5. checking a password
  6. line 3
  7. 29
  8. line 3
  9. adding up a bill
  10. a result on screen
  11. 190
  12. a pop-up message
  13. checking a password
  14. input
  15. speaking a command
  16. input
  17. line 3
  18. output
  19. 3000
  20. line 3
  21. 140
  22. line 2
  23. line 2
  24. typing your age
  25. input
  26. 7000
  27. output
  28. line 3
  29. processing
  30. False
  31. input
  32. True
  33. line 3
  34. line 3
  35. speaking a command
  36. False
  37. True
  38. a beep sound
  39. True
  40. adding up a bill

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