ExamVeda
Login
Home
21
Which type of relationship is modelled by Composition?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
22
Which of the following describes the protected access specifier?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
23
Which is used to use a function from one source file to another?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
24
Which is used for formatting purpose in c++?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
25
Which is the correct way of handling arguments with spaces?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
26
What will be the output of the following C++ code?
#include <iostream>
#include <set>
using namespace std;
int main()
{
    set<int> tst;
    tst.insert(12);
    tst.insert(21);
    tst.insert(32);
    tst.insert(31);
    set<int> :: const_iterator pos;
    for(pos = tst.begin(); pos != tst.end(); ++pos)
    cout << *pos << ' ';
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
27
What happens when no argument is supplied to flip() function?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
28
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
using namespace std;
int main () 
{
    int myints[] = {1, 2, 3};
    sort (myints, myints + 3);
    do 
    {
    } while ( next_permutation(myints, myints + 3) );
    cout << myints[0] << ' ' << myints[1] << ' ' << myints[2] << '\n';
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
29
How the size of a vector increases once it is full?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
30
What will be the output of the following C++ code?
#include <iostream>
#include<type_traits>
using namespace std;
class Base
{
    public:
};
int main()
{
	Base b;
	cout<<sizeof(b);
	return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board