Which of the following is an entry-controlled loop?
The following function returns the
The parameters specified in the function call are known as _________ parameters.
Which of the following is an exception in C++?
What is the scope of a nameless (anonymous) object?
What is the purpose of the middle parameter in the rotate() method?
What is the output of the following program? (Consider a 64-bit system)
int func(char array[])
{
return sizeof(array)/sizeof(char);
}
int main()
{
char str[10];
printf("%d", func(str));
}
Which of the following statements is correct?
Suppose we have a O(n) time algorithm that finds median of an unsorted array. Now consider a QuickSort implementation where we first find median using the above algorithm, then use median as pivot. What will be the worst case time complexity of this modified QuickSort.