← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a pop-up message
  2. 130
  3. typing your age
  4. 300
  5. input
  6. line 3
  7. line 3
  8. input
  9. speaking a command
  10. False
  11. adding up a bill
  12. speaking a command
  13. adding up a bill
  14. True
  15. line 3
  16. 310
  17. line 2
  18. True
  19. output
  20. False
  21. False
  22. True
  23. line 3
  24. True
  25. 210
  26. 60
  27. 180
  28. 8000
  29. line 3
  30. line 3
  31. taking a photo
  32. line 3
  33. typing your age
  34. sorting the scores
  35. a result on screen
  36. line 3
  37. 69
  38. 190
  39. sorting the scores
  40. line 2

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