Q701
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
1,171
Questions
36/59
Page
Pick an option on a question to see the right answer and solution.
Q701
Open questionSelect an option to see the answer and solution.
Q702
Open questionSelect an option to see the answer and solution.
Q703
Open questionSelect an option to see the answer and solution.
Q704
Open questionSelect an option to see the answer and solution.
Q705
Open questionSelect an option to see the answer and solution.
Q706
Open questionSelect an option to see the answer and solution.
Q707
Open questionSelect an option to see the answer and solution.
Q708
Open questionSelect an option to see the answer and solution.
Q709
Open questionSelect an option to see the answer and solution.
Q710
Open questionSelect an option to see the answer and solution.
Q711
Open questionSelect an option to see the answer and solution.
Q712
Open questionSelect an option to see the answer and solution.
Q713
Open question#include<stdio.h>
#include<string.h>
void reverse_string(char *s)
{
int len = strlen(s);
int i,j;
i=0;
j=len-1;
while(______)
{
char tmp = s[i];
s[i] = s[j];
s[j] = tmp;
i++;
j--;
}
}
Which of the following lines should be inserted to complete the above code?Select an option to see the answer and solution.
Q714
Open questionSelect an option to see the answer and solution.
Q715
Open questionSelect an option to see the answer and solution.
Q716
Open questionSelect an option to see the answer and solution.
Q717
Open questionSelect an option to see the answer and solution.
Q718
Open questionSelect an option to see the answer and solution.
Q719
Open question#include <stdio.h>
bool func(int arr[], int n, int sum)
{
if (sum == 0)
return true;
if (n == 0 && sum != 0)
return false;
if (arr[n-1] > sum)
return func(arr, n-1, sum);
return func(arr, n-1, sum) || func(arr, n-1, sum-arr[n-1]);
}
int main()
{
int arr[] = {4,6, 12, 2};
int sum = 12;
int n = sizeof(arr)/sizeof(arr[0]);
if (func(arr, n, sum) == true)
printf("true");
else
printf("false");
return 0;
}Select an option to see the answer and solution.
Q720
Open questionSelect an option to see the answer and solution.