Question
Which statistical method is most suitable for
quantifying the strength and direction of a linear relationship between two continuous variables?Solution
Explanation: The Pearson correlation coefficient measures the strength and direction of a linear relationship between two continuous variables. It produces a value between -1 and 1, where -1 indicates a perfect negative correlation, 1 indicates a perfect positive correlation, and 0 indicates no linear correlation. It is widely used when the variables are normally distributed and have a linear association. For example, in analyzing the relationship between sales revenue and advertising expenditure, the Pearson coefficient can determine how strongly these two variables are related. Option A: The Chi-square test evaluates relationships between categorical variables, not continuous variables. Option C: The Spearman rank correlation is a non-parametric alternative to Pearson’s, suitable for ordinal data or non-linear relationships. Option D: ANOVA tests differences between group means and is not used for correlation analysis. Option E: The Mann-Whitney U test compares medians of two independent samples and does not measure correlation.
An algorithm has a time complexity of O(N² ). If the input size N doubles, how does the execution time approximately change?
Consider the following C code snippet:
  #include
  int factorial(int n) {
    if (n == 0) {
  ...
Which of the following best describes the "Ready" state of a process?
Which OOP principle focuses on showing only essential information and hiding the complex implementation details from the user?
Consider the following Python code:
text = "banana"
char_to_find = 'a'
count = 0
for i in range(len(text)):
  if ...
What does Cyclomatic Complexity measure in software engineering?
Given a set of activities with start and finish times: (1,4), (3,5), (0,6), (5,7), (3,9), (5,9), (6,10), (8,11), (8,12), (2,14), (12,16). If you apply t...
What is the time complexity of a Binary Search algorithm on a sorted array of 'n' elements?
Which statement is FALSE regarding DRAM memory?
What is the primary goal of concurrent programming in software development?