← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. 560
  2. typing your age
  3. sorting the scores
  4. input
  5. 135
  6. False
  7. line 3
  8. True
  9. processing
  10. 120
  11. 39
  12. a result on screen
  13. 9000
  14. 80
  15. speaking a command
  16. taking a photo
  17. a buzz (vibration)
  18. processing
  19. 480
  20. a buzz (vibration)
  21. line 3
  22. line 2
  23. adding up a bill
  24. line 2
  25. a result on screen
  26. True
  27. line 3
  28. True
  29. line 3
  30. input
  31. a pop-up message
  32. 210
  33. checking a password
  34. 25
  35. False
  36. line 3
  37. checking a password
  38. a pop-up message
  39. taking a photo
  40. input

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