What's the probability of the union of two mutually exclusive events A and B?

  • P(A) * P(B)
  • P(A) + P(B)
  • P(A) - P(B)
  • P(A) / P(B)
The probability of the union of two mutually exclusive events A and B is given by P(A ∪ B) = P(A) + P(B). This is because mutually exclusive events cannot occur at the same time, so the probability of either event A occurring or event B occurring is the sum of their individual probabilities.

The alternative hypothesis, denoted by H1 or Ha, is the hypothesis that _______ observations are influenced by some non-random cause.

  • Population
  • Random
  • Sample
  • Systematic
The alternative hypothesis proposes that there is a difference or an effect in the population and the sample observations are influenced by some non-random cause.

To create a user-defined exception, one must usually extend the ________ class.

  • BaseException
  • CustomException
  • Error
  • Exception
To create a user-defined exception, one must usually extend the Exception class. By extending this base class, developers can define their own custom exceptions with specific behaviors, making the code more modular and maintainable.

________ is a common format for transmitting data in social media integrations, particularly for APIs.

  • CSV
  • JSON
  • SOAP
  • XML
JSON (JavaScript Object Notation) is commonly used for transmitting data in social media integrations and APIs due to its lightweight and human-readable format. It is easy to parse and generate, making it a popular choice for data exchange.

What is the primary purpose of the 'application' directory in CodeIgniter?

  • CSS and JavaScript files
  • Configuration and customization
  • Controller classes
  • Database schema
The 'application' directory in CodeIgniter is primarily used for configuration and customization. It houses files related to controllers, models, views, and other application-specific components. This directory is crucial for organizing and managing the core functionality of a CodeIgniter application.

The ________ function in CodeIgniter can be used to load libraries, helpers, or custom config files within a controller.

  • import
  • include
  • load
  • require
The load function in CodeIgniter is used to load libraries, helpers, or custom config files within a controller. This enables the use of additional resources, enhancing the functionality of the controller.

The tool in CodeIgniter that provides runtime statistics about the application is called the ________.

  • Analyzer
  • Debugger
  • Inspector
  • Profiler
CodeIgniter's Profiler tool provides runtime statistics about the application, aiding in performance analysis and optimization.

The number of records per page in CodeIgniter pagination is set using the ________ configuration option.

  • per_page
  • records_per_page
  • limit
  • page_size
In CodeIgniter, the number of records displayed per page is set using the per_page configuration option in the pagination configuration. This option determines how many records to show on each page of the paginated results.

After installing CodeIgniter, which directory should be set as the web server's document root?

  • application
  • public
  • system
  • vendor
The public directory should be set as the web server's document root after installing CodeIgniter. This ensures that only the necessary files are accessible from the web, enhancing the security of your application.

In OAuth, ________ ensures that tokens are only sent over HTTPS connections to protect against man-in-the-middle attacks.

  • Token Binding
  • Token Encryption
  • Token Revocation
  • Token Validation
In OAuth, Token Binding ensures that tokens are only sent over HTTPS connections, protecting against man-in-the-middle attacks. Token Binding binds the security of the token to the underlying TLS (Transport Layer Security) connection, making it more resistant to interception and misuse.