College Board 3.14 3.15 - LindaLiu1202/lindaliu GitHub Wiki

College Board 3.14 Libraries

  • A software library contains procedures that may be used in creating new programs.
  • Existing code segments can come from internal or external sources, such as libraries or previously written code.
  • The use of libraries simplifies the task of creating complex programs.
  • Application program interfaces (APIs) are specifications for how the procedures in a library behave and can be used.
  • Documentation for an API/library is necessary in understanding the behaviors provided by the API/library and how to use them.
  • A file that contains procedures that can be used in a program is considered a library.
  • An Application Program Interface (API) provides specifications for how procedures in a library behave and can be used.
  • Many large tech companies and social media companies provide APIs for programmers to interact with their products.

College Board 3.15 Random Values

The exam reference sheet provides Text: RANDOM(a, b) Block: RANDOM a, b

  • which generates and returns a random integer from a to b, inclusive.
  • Each result is equally likely to occur. For example, RANDOM(1, 3) could return 1, 2, or 3.
  • Using random number generation in a program means each execution may produce a different result.
  • We can use the results from randomization to program simulations.

  • RANDOM a, b generates a number from a to b inclusive.
  • Each result from the randomization is equally likely to occur.
  • Using random number generation in a program means each execution may produce a different result.
  • We can use the results from randomization to program simulations.