← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. checking a password
  2. 34
  3. tapping a button
  4. a pop-up message
  5. True
  6. input
  7. 36
  8. 300
  9. 55
  10. adding up a bill
  11. False
  12. taking a photo
  13. input
  14. True
  15. processing
  16. adding up a bill
  17. True
  18. 10000
  19. sorting the scores
  20. a result on screen
  21. line 3
  22. line 3
  23. line 2
  24. line 3
  25. False
  26. False
  27. 80
  28. a beep sound
  29. line 3
  30. line 3
  31. False
  32. 190
  33. 11000
  34. False
  35. False
  36. True
  37. line 3
  38. line 3
  39. line 3
  40. input

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