← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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