← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. True
  2. speaking a command
  3. 360
  4. True
  5. 40
  6. True
  7. False
  8. 225
  9. output
  10. sorting the scores
  11. line 3
  12. a pop-up message
  13. False
  14. working out a tip
  15. tapping a button
  16. False
  17. line 3
  18. line 3
  19. 6000
  20. 25
  21. input
  22. 4000
  23. line 3
  24. adding up a bill
  25. a buzz (vibration)
  26. adding up a bill
  27. line 2
  28. line 3
  29. 14000
  30. a beep sound
  31. 450
  32. line 3
  33. 3000
  34. line 3
  35. a result on screen
  36. 49
  37. input
  38. line 3
  39. 180
  40. line 3

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