Home / MCQ Bank / Computer
Computer Constructors And Methods Difficulty: Medium

What would be behaviour if the constructor has a return type?

Select the correct option to test your answer:

More Computer Questions

In HBase, what does the term "HBase Data Block" refer to? What is the syntax for defining a class method in Ruby? What will be the output of the following C++ code? #include <iostream> using namespace std; template <class T, int max> int arrMin(T arr[], int n) { int m = max; for (int i = 0; i < n; i++) if (arr[i] < m) m = arr[i]; return m; } int main() { int arr1[] = {10, 20, 15, 12}; int n1 = sizeof(arr1)/sizeof(arr1[0]); char arr2[] = {1, 2, 3}; int n2 = sizeof(arr2)/sizeof(arr2[0]); cout << arrMin<int, 10000>(arr1, n1) << endl; cout << arrMin<char, 256>(arr2, n2); return 0; } What is the purpose of the Hadoop Secondary NameNode? What will be the output of the following MySQL statement "false AND Null"?