ExamVeda
Login
Home
41
Which function is used to print the maximum element from Valarray?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
42
What is the use of tuple_cat() function?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
43
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
template <class T>
T max (T& a, T& b) 
{
    return (a>b?a:b);
}
int main () 
{
    int i = 5, j = 6, k;
    long l = 10, m = 5, n;
    k = max(i, j);
    n = max(l, m);
    cout << k << endl;
    cout << n << endl;
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
44
When will the cin can start processing of input?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
45
What are Random-access Iterators?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
46
How many types of loops are there in C++?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
What does this template function indicates?
==================
template<class T>
T func(T a)
{
	cout<<a;
}
==================
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
48
What does the second parameter of the main function represent?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
49
Which header file is used to manipulate the vector algebra in c++?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
50
Which function is used to get the imaginary part of the complex number?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board