← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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