← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. adding up a bill
  3. 180
  4. line 2
  5. 28
  6. line 3
  7. a result on screen
  8. a buzz (vibration)
  9. line 3
  10. checking a password
  11. True
  12. 37
  13. typing your age
  14. checking a password
  15. speaking a command
  16. input
  17. False
  18. 240
  19. taking a photo
  20. taking a photo
  21. line 2
  22. line 3
  23. line 2
  24. 50
  25. 120
  26. 15000
  27. processing
  28. 90
  29. 71
  30. 105
  31. a result on screen
  32. 67
  33. adding up a bill
  34. True
  35. line 3
  36. line 3
  37. 250
  38. False
  39. line 3
  40. line 2

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