ExamVeda
Login
Home
11
Which of the following is correct about the first parameter of the main function?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
12
What of the following is the equivalent statement for the functor call,
x = f(arg1, arg2);
where f is a functor and arg1 and arg2 are the arguments required by the functors?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
13
Which function is used increment the iterator by a particular value?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
14
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
    cout<<extent<remove_all_extents<string[10][20][30]>::type>::value;
    return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
15
What will be the output of the following C++ code?
#include <iostream>
#include <queue>
using namespace std;
int main ()
{
    priority_queue<int> mypq;
    mypq.push(10);
    mypq.push(20);
    mypq.push(15);
    cout  << mypq.top() << endl;
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
16
What is a function template?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
17
What will be the output of the following C++ code?
#include <iostream>
#include <locale>
using namespace std;
int main()
{
    locale mylocale("");
    cout.imbue( mylocale );
    cout << (double) 3.14159 << endl;
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
18
Which function is used to check whether a character is an alphabet or number?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
19
Which function is used to check whether the vector is empty or not?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
20
What is the use of adapter in STL in c++?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board