← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. 2000
  3. line 3
  4. a buzz (vibration)
  5. line 3
  6. output
  7. checking a password
  8. a pop-up message
  9. False
  10. line 3
  11. line 3
  12. line 2
  13. line 3
  14. processing
  15. line 3
  16. working out a tip
  17. True
  18. input
  19. taking a photo
  20. False
  21. adding up a bill
  22. line 3
  23. processing
  24. a result on screen
  25. line 3
  26. line 3
  27. False
  28. 130
  29. output
  30. sorting the scores
  31. True
  32. working out a tip
  33. 380
  34. output
  35. input
  36. adding up a bill
  37. line 3
  38. True
  39. line 3
  40. False

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