← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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