← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. speaking a command
  3. line 2
  4. 340
  5. a pop-up message
  6. False
  7. a beep sound
  8. input
  9. input
  10. processing
  11. line 2
  12. processing
  13. output
  14. line 2
  15. line 3
  16. a beep sound
  17. processing
  18. 475
  19. input
  20. output
  21. line 3
  22. line 3
  23. taking a photo
  24. True
  25. 50
  26. output
  27. False
  28. False
  29. 14000
  30. processing
  31. 2000
  32. 240
  33. a result on screen
  34. taking a photo
  35. line 3
  36. line 3
  37. line 3
  38. 44
  39. True
  40. 5000

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