← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. 480
  3. 13
  4. 200
  5. line 3
  6. input
  7. processing
  8. 130
  9. False
  10. output
  11. line 3
  12. line 3
  13. line 3
  14. line 3
  15. processing
  16. False
  17. 330
  18. output
  19. 410
  20. False
  21. 56
  22. False
  23. speaking a command
  24. True
  25. 270
  26. True
  27. sorting the scores
  28. 65
  29. line 3
  30. False
  31. sorting the scores
  32. 7000
  33. tapping a button
  34. tapping a button
  35. taking a photo
  36. processing
  37. input
  38. a result on screen
  39. 420
  40. 140

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