← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a result on screen
  2. 360
  3. a buzz (vibration)
  4. 4000
  5. line 3
  6. output
  7. line 3
  8. working out a tip
  9. True
  10. 400
  11. False
  12. taking a photo
  13. a beep sound
  14. 310
  15. 10000
  16. speaking a command
  17. 79
  18. output
  19. typing your age
  20. processing
  21. line 2
  22. 140
  23. 225
  24. 11000
  25. False
  26. taking a photo
  27. True
  28. 12
  29. True
  30. False
  31. False
  32. speaking a command
  33. line 3
  34. 180
  35. a buzz (vibration)
  36. 180
  37. tapping a button
  38. adding up a bill
  39. line 3
  40. line 3

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