← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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