← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. 100
  3. adding up a bill
  4. a pop-up message
  5. working out a tip
  6. line 3
  7. output
  8. speaking a command
  9. 10000
  10. line 3
  11. False
  12. a result on screen
  13. processing
  14. False
  15. input
  16. 170
  17. False
  18. sorting the scores
  19. line 2
  20. 350
  21. output
  22. 11000
  23. 12000
  24. typing your age
  25. speaking a command
  26. a buzz (vibration)
  27. line 3
  28. adding up a bill
  29. line 3
  30. False
  31. 7000
  32. sorting the scores
  33. 120
  34. 74
  35. input
  36. line 3
  37. False
  38. input
  39. False
  40. line 2

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