← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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