How can one adjust for multicollinearity in a multiple linear regression model?

  • By adding interaction terms
  • By increasing the sample size
  • By removing one of the correlated variables or combining the correlated variables
  • By transforming the dependent variable
To adjust for multicollinearity in a multiple linear regression model, one of the common strategies is to remove one of the highly correlated independent variables or to combine the correlated variables.

The distribution of the sample mean will approach a normal distribution as the sample size increases, according to the _________.

  • Central Limit Theorem
  • Law of Large Numbers
  • Probability Rule
  • Sampling Distribution
According to the Central Limit Theorem, the distribution of the sample mean will approach a normal distribution as the sample size increases. Regardless of the shape of the population, the distribution of sample means taken with large enough sample size can be approximated by a normal distribution.

In a box plot, the 'box' represents the ________ quartile range of the data.

  • Full
  • Inter
  • Lower
  • Upper
The 'box' in a box plot represents the interquartile range (IQR) of the data. This is the range within which the middle 50% of the data falls, calculated as the difference between the third quartile (Q3) and the first quartile (Q1).

How is the test statistic computed in the Sign Test?

  • By averaging the ranks
  • By counting the number of positive and negative signs
  • By summing the differences
  • By summing the ranks
In the Sign Test, the test statistic is computed by counting the number of positive and negative signs of the differences between paired observations.

In simple linear regression, the assumption that the variance of the errors is constant across all levels of the independent variables is known as ________.

  • autocorrelation
  • heteroscedasticity
  • homoscedasticity
  • multicollinearity
In statistics, homoscedasticity (or homoskedasticity) is the assumption that the variance of the errors is constant across all levels of the independent variables. This is an important assumption in regression models, including simple linear regression.

How does sample size affect the accuracy of a statistic?

  • Larger samples lead to less accurate statistics
  • Larger samples lead to more accurate statistics
  • Sample size does not affect the accuracy of a statistic
  • The relationship between sample size and statistic accuracy is unpredictable
Larger samples tend to lead to more accurate statistics. The reason is that as we increase the sample size, the sample mean gets closer to the population mean, reducing the standard error. In other words, larger samples provide a better estimate of the population parameters, leading to more accurate and reliable results. However, this doesn't mean larger samples are always feasible or more effective, as they require more resources and time.

To redirect the response to another resource, the __________ method is used in servlets.

  • forward()
  • forwardResponse()
  • redirect()
  • sendRedirect()
The sendRedirect() method is used to redirect the response to another resource in servlets.

Which method is used to read form data sent via POST request in a servlet?

  • request.getFormData()
  • request.getParameter()
  • request.readParameter()
  • request.readPostData()
The request.readPostData() method is used to read form data sent via POST request in a servlet.

What is primarily stored in ServletConfig?

  • Context attributes
  • Request parameters
  • Servlet parameters
  • Session data
ServletConfig primarily stores servlet parameters, which are initialization parameters for a servlet.

Which method is commonly used for session tracking in servlets?

  • doGet()
  • doPost()
  • getSession()
  • init()
The getSession() method is commonly used for session tracking in servlets. It returns the current session associated with the request or creates a new session if one does not exist.

During the servlet lifecycle, which method is called only once and is used for initialization purposes?

  • destroy()
  • doGet()
  • init()
  • service()
The init() method is called only once when a servlet is first loaded into memory and is used to perform any necessary initialization tasks.

What is the role of servlet-mapping in the servlet's configuration?

  • It configures the servlet's initialization parameters.
  • It defines the servlet's behavior in handling HTTP requests.
  • It determines the servlet's load-on-startup configuration.
  • It specifies the URL pattern to associate with a servlet.
Servlet-mapping in the web.xml file associates a URL pattern with a servlet, specifying which requests should be directed to that servlet for processing. It helps in defining the servlet's mapping to incoming URLs.