← Input, processing and output lesson New set →

App Dev Worksheet: Input, Processing, Output

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

Answer key

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

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