← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. adding up a bill
  3. output
  4. False
  5. taking a photo
  6. line 3
  7. a result on screen
  8. line 3
  9. processing
  10. line 3
  11. working out a tip
  12. line 3
  13. True
  14. checking a password
  15. True
  16. 340
  17. 270
  18. line 2
  19. processing
  20. processing
  21. line 3
  22. input
  23. taking a photo
  24. output
  25. True
  26. line 3
  27. line 2
  28. 140
  29. tapping a button
  30. 270
  31. typing your age
  32. a buzz (vibration)
  33. line 2
  34. adding up a bill
  35. speaking a command
  36. True
  37. True
  38. 320
  39. 170
  40. 100

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