← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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