← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

  1. line 3
  2. processing
  3. 100
  4. typing your age
  5. a pop-up message
  6. 9000
  7. line 3
  8. adding up a bill
  9. input
  10. input
  11. output
  12. 16
  13. line 3
  14. 150
  15. 31
  16. 520
  17. taking a photo
  18. 74
  19. processing
  20. line 2
  21. sorting the scores
  22. tapping a button
  23. tapping a button
  24. 190
  25. 65
  26. output
  27. line 3
  28. line 3
  29. 100
  30. False
  31. 37
  32. 19
  33. line 2
  34. line 3
  35. working out a tip
  36. 320
  37. 490
  38. 13000
  39. False
  40. line 3

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