← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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