← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 14000
  2. 200
  3. line 3
  4. True
  5. adding up a bill
  6. processing
  7. typing your age
  8. a result on screen
  9. line 3
  10. True
  11. line 3
  12. output
  13. line 3
  14. line 3
  15. processing
  16. 580
  17. adding up a bill
  18. 7000
  19. line 3
  20. taking a photo
  21. False
  22. False
  23. line 2
  24. 23
  25. line 3
  26. False
  27. line 2
  28. a buzz (vibration)
  29. line 3
  30. 13000
  31. 67
  32. working out a tip
  33. 320
  34. False
  35. checking a password
  36. line 2
  37. True
  38. input
  39. input
  40. checking a password

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