← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. 62
  3. line 3
  4. taking a photo
  5. False
  6. processing
  7. taking a photo
  8. line 3
  9. speaking a command
  10. processing
  11. 23
  12. line 3
  13. line 3
  14. 390
  15. working out a tip
  16. False
  17. adding up a bill
  18. a pop-up message
  19. True
  20. 200
  21. line 3
  22. 24
  23. a pop-up message
  24. True
  25. 60
  26. 500
  27. line 3
  28. line 2
  29. tapping a button
  30. line 3
  31. typing your age
  32. a beep sound
  33. line 3
  34. a buzz (vibration)
  35. output
  36. input
  37. a beep sound
  38. sorting the scores
  39. adding up a bill
  40. True

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