← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. a beep sound
  2. output
  3. 27
  4. tapping a button
  5. False
  6. line 3
  7. adding up a bill
  8. tapping a button
  9. line 3
  10. line 3
  11. taking a photo
  12. typing your age
  13. line 3
  14. output
  15. True
  16. 65
  17. True
  18. 300
  19. processing
  20. 170
  21. processing
  22. taking a photo
  23. input
  24. typing your age
  25. 475
  26. 375
  27. a pop-up message
  28. True
  29. True
  30. 11000
  31. False
  32. line 3
  33. 50
  34. a buzz (vibration)
  35. line 3
  36. True
  37. line 2
  38. 530
  39. input
  40. True

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