← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. 150
  3. working out a tip
  4. a beep sound
  5. tapping a button
  6. processing
  7. adding up a bill
  8. typing your age
  9. input
  10. False
  11. line 2
  12. line 3
  13. typing your age
  14. 490
  15. output
  16. False
  17. taking a photo
  18. output
  19. 510
  20. False
  21. a result on screen
  22. 300
  23. checking a password
  24. 8000
  25. processing
  26. line 2
  27. checking a password
  28. tapping a button
  29. 170
  30. input
  31. a beep sound
  32. 200
  33. line 3
  34. 190
  35. a buzz (vibration)
  36. True
  37. speaking a command
  38. line 2
  39. False
  40. 13000

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