← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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