← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. input
  3. tapping a button
  4. a result on screen
  5. False
  6. tapping a button
  7. sorting the scores
  8. True
  9. adding up a bill
  10. 9000
  11. output
  12. 56
  13. 18
  14. line 3
  15. 59
  16. line 3
  17. input
  18. line 3
  19. 530
  20. a buzz (vibration)
  21. line 3
  22. line 3
  23. typing your age
  24. 240
  25. line 2
  26. speaking a command
  27. False
  28. False
  29. 10
  30. 4000
  31. input
  32. 210
  33. line 2
  34. speaking a command
  35. a buzz (vibration)
  36. processing
  37. 360
  38. False
  39. adding up a bill
  40. line 3

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