← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. typing your age
  2. a result on screen
  3. line 3
  4. a result on screen
  5. processing
  6. taking a photo
  7. input
  8. input
  9. line 3
  10. processing
  11. line 3
  12. 19
  13. a beep sound
  14. working out a tip
  15. adding up a bill
  16. line 2
  17. 9000
  18. 30
  19. True
  20. line 2
  21. 240
  22. processing
  23. line 3
  24. processing
  25. line 3
  26. True
  27. adding up a bill
  28. 160
  29. line 3
  30. True
  31. True
  32. speaking a command
  33. line 3
  34. True
  35. sorting the scores
  36. False
  37. True
  38. 420
  39. 150
  40. a pop-up message

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