← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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