ExamVeda
Login
Home
91
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main ()
{
    int first[] = {5, 10, 15, 20, 25};
    int second[] = {50, 40, 30, 20, 10};
    vector<int> v(10);      
    vector<int> :: iterator it;
    sort (first, first + 5);   
    sort (second, second + 5); 
    it = set_union (first, first + 5, second, second + 5, v.begin());
    cout << int(it - v.begin());
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
92
What are the Sequence Containers?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
93
Which of the following is best to include under try block?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
94
How many Associative Containers are provided by C++?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
95
How many elements does a floating point number is composed of?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
96
What will be the output of the following C++ code?
#include <stdio.h>    
#include <stdlib.h>   
int main ()
{
    int n, m;
    n = abs(23);
    m = abs(-11);
    printf ("%d", n);
    printf ("%d", m);
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
97
What is the Standard Template Library?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
98
Which header file is required for manipulation of math functions in c++?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
99
What will be the output of the following C++ code?
#include <stdio.h>
#include <math.h>
int main ()
{
    double param, result;
    param = 5.5;
    result = log (param);
    printf ("%lf", result );
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
100
Pick out the correct method in the c++ standard library algorithm.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board