← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. line 3
  3. 150
  4. False
  5. line 3
  6. a beep sound
  7. line 3
  8. line 2
  9. input
  10. tapping a button
  11. line 3
  12. processing
  13. line 3
  14. a pop-up message
  15. 410
  16. line 3
  17. 210
  18. True
  19. 3000
  20. tapping a button
  21. 56
  22. speaking a command
  23. adding up a bill
  24. 15000
  25. line 3
  26. 2000
  27. checking a password
  28. line 2
  29. True
  30. working out a tip
  31. line 3
  32. line 3
  33. False
  34. False
  35. 340
  36. working out a tip
  37. line 3
  38. output
  39. a result on screen
  40. adding up a bill

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