← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. processing
  2. input
  3. False
  4. a result on screen
  5. line 3
  6. 11000
  7. input
  8. 2000
  9. a pop-up message
  10. line 2
  11. line 3
  12. line 3
  13. line 3
  14. 310
  15. True
  16. typing your age
  17. working out a tip
  18. line 3
  19. False
  20. True
  21. adding up a bill
  22. line 3
  23. True
  24. speaking a command
  25. output
  26. line 3
  27. tapping a button
  28. line 3
  29. 4000
  30. 320
  31. False
  32. 55
  33. working out a tip
  34. tapping a button
  35. sorting the scores
  36. a pop-up message
  37. False
  38. 53
  39. False
  40. 120

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