← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 9000
  2. input
  3. output
  4. processing
  5. True
  6. input
  7. False
  8. sorting the scores
  9. processing
  10. a beep sound
  11. processing
  12. line 3
  13. line 3
  14. line 3
  15. True
  16. True
  17. working out a tip
  18. 54
  19. output
  20. False
  21. True
  22. line 3
  23. 410
  24. line 3
  25. 44
  26. 130
  27. checking a password
  28. line 3
  29. tapping a button
  30. 25
  31. speaking a command
  32. False
  33. output
  34. 180
  35. 400
  36. 150
  37. 100
  38. sorting the scores
  39. line 3
  40. False

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