← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 530
  2. processing
  3. typing your age
  4. 420
  5. output
  6. a buzz (vibration)
  7. 200
  8. line 3
  9. 9000
  10. 31
  11. adding up a bill
  12. True
  13. typing your age
  14. 110
  15. speaking a command
  16. 100
  17. a result on screen
  18. 3000
  19. checking a password
  20. True
  21. output
  22. False
  23. a pop-up message
  24. input
  25. tapping a button
  26. adding up a bill
  27. line 3
  28. line 3
  29. 270
  30. 100
  31. taking a photo
  32. line 3
  33. line 2
  34. checking a password
  35. input
  36. False
  37. True
  38. 75
  39. 12
  40. input

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