Home / MCQ Bank / Computer
Computer Introduction To R Programming Difficulty: Medium

Files containing R scripts ends with extension . . . . . . . .

Select the correct option to test your answer:

More Computer Questions

What is the output of the following code? #include<stdio.h> #include<limits.h> int max_num(int a, int b) { if(a > b) return a; return b; } int kadane_algo(int *arr, int len) { int ans, sum, idx; ans =0; sum =0; for(idx =0; idx < len; idx++) { sum = max_num(0,sum + arr[idx]); ans = max_num(sum,ans); } return ans; } int max_sum_rectangle(int arr[][5],int row,int col) { int left, right, tmp[row], mx_sm = INT_MIN, idx, val=0; for(left = 0; left < col; left++) { for(right = left; right < col; right++) { if(right == left) { for(idx = 0; idx < row; idx++) tmp[idx] = arr[idx][right]; } else { for(idx = 0; idx < row; idx++) tmp[idx] += arr[idx][right]; } val = kadane_algo(tmp,row); if(val > mx_sm) mx_sm = val; } } return mx_sm; } int main() { int arr[4][5] ={{ 7, 1, -3, -6, -15}, { 10, -6, 3, -4, 11}, { -2, -3, -1, 2, -5}, { 3, 0, 1, 0, 3}}; int row = 4, col = 5; int ans = max_sum_rectangle(arr,row,col); printf("%d",ans); return 0; } Consider a variation of the balanced partition problem in which we find two subsets such that |S1 - S2| is minimum. Consider the array {1, 2, 3, 4, 5}. Which of the following pairs of subsets is an optimal solution for the above problem? What is the order of precedence for the arithmetic operators in Python? What is the significance of the Sqoop "--split-by" option in the import command? In Python, which library is commonly used for working with time series data and performing forecasting tasks with a focus on simplicity?