← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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