← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 2
  2. line 3
  3. input
  4. processing
  5. line 3
  6. input
  7. True
  8. True
  9. checking a password
  10. 5000
  11. True
  12. 44
  13. False
  14. 39
  15. 40
  16. line 3
  17. line 3
  18. working out a tip
  19. output
  20. 130
  21. False
  22. working out a tip
  23. a result on screen
  24. False
  25. a beep sound
  26. True
  27. line 3
  28. sorting the scores
  29. input
  30. 30
  31. sorting the scores
  32. processing
  33. line 3
  34. line 3
  35. line 2
  36. output
  37. speaking a command
  38. line 3
  39. output
  40. 280

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