← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 40
  2. 11000
  3. 250
  4. line 3
  5. line 3
  6. False
  7. 9000
  8. typing your age
  9. tapping a button
  10. line 2
  11. True
  12. False
  13. a beep sound
  14. a buzz (vibration)
  15. a result on screen
  16. speaking a command
  17. 62
  18. processing
  19. 64
  20. output
  21. output
  22. input
  23. speaking a command
  24. 7000
  25. 240
  26. False
  27. True
  28. working out a tip
  29. 190
  30. 120
  31. output
  32. taking a photo
  33. False
  34. True
  35. False
  36. 440
  37. 100
  38. a pop-up message
  39. True
  40. 530

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