← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. a beep sound
  3. output
  4. False
  5. a buzz (vibration)
  6. processing
  7. True
  8. processing
  9. line 3
  10. a result on screen
  11. line 3
  12. True
  13. input
  14. output
  15. True
  16. working out a tip
  17. processing
  18. taking a photo
  19. 410
  20. 90
  21. False
  22. False
  23. tapping a button
  24. line 3
  25. tapping a button
  26. 190
  27. 32
  28. line 3
  29. line 3
  30. line 2
  31. adding up a bill
  32. input
  33. sorting the scores
  34. 6000
  35. False
  36. checking a password
  37. output
  38. 210
  39. typing your age
  40. line 3

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