← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. input
  3. taking a photo
  4. line 3
  5. typing your age
  6. tapping a button
  7. a pop-up message
  8. a beep sound
  9. 430
  10. 13000
  11. 45
  12. 325
  13. line 3
  14. a result on screen
  15. working out a tip
  16. typing your age
  17. speaking a command
  18. 540
  19. True
  20. 22
  21. line 3
  22. 310
  23. line 3
  24. 3000
  25. 90
  26. input
  27. 420
  28. 15000
  29. sorting the scores
  30. 55
  31. True
  32. output
  33. False
  34. 8000
  35. False
  36. output
  37. line 3
  38. line 3
  39. adding up a bill
  40. processing

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