← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. input
  2. input
  3. line 3
  4. False
  5. 490
  6. adding up a bill
  7. adding up a bill
  8. 72
  9. working out a tip
  10. taking a photo
  11. a beep sound
  12. line 3
  13. False
  14. line 2
  15. taking a photo
  16. True
  17. line 3
  18. line 3
  19. True
  20. processing
  21. input
  22. 40
  23. a buzz (vibration)
  24. 67
  25. 5000
  26. line 3
  27. 110
  28. 67
  29. line 2
  30. line 3
  31. 80
  32. line 3
  33. False
  34. line 3
  35. 9000
  36. 510
  37. sorting the scores
  38. 75
  39. 42
  40. line 3

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