← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. False
  2. tapping a button
  3. True
  4. input
  5. processing
  6. sorting the scores
  7. 190
  8. False
  9. processing
  10. 11000
  11. 110
  12. line 2
  13. tapping a button
  14. speaking a command
  15. adding up a bill
  16. True
  17. line 3
  18. line 3
  19. 100
  20. line 3
  21. 8000
  22. line 3
  23. input
  24. True
  25. 5000
  26. 11
  27. 140
  28. taking a photo
  29. line 2
  30. input
  31. line 2
  32. 6000
  33. checking a password
  34. typing your age
  35. output
  36. 380
  37. checking a password
  38. False
  39. speaking a command
  40. 61

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