ExamVeda
Login
Home
51
Which of the following operator is used to capture all the external variable by reference?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
52
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <tuple>
using namespace std;
int main()
{
	tuple <int, char, string> tp1;
	tp1 = make_tuple(6, 'a', "Hello");
	int x;
	string y;
	tie(x,ignore,y) = tp1;
	cout<<"x: "<<x<<"\ny: "<<y<<endl;
	return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
53
What is meant by exception specification?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
54
Which is used to throw a exception?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
55
Which of the following is correct about Valarray?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
56
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
class Print
{
   public:
	void operator()(int a){
		cout<<a<<endl;
	}
};
int main()
{
	Print print;
	print(5);
	return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
57
What will be the output of the following C++ code?
#include <iostream>
using namespace std; 
template<typename T>class clsTemplate
{
    public:
    T value;
    clsTemplate(T i)
    {
        this->value = i;
    }
void test()
{
    cout << value << endl;
}
};
class clsChild : public clsTemplate<char>
{
    public:
    clsChild(): clsTemplate<char>( 0 )
    {
    }
    clsChild(char c): clsTemplate<char>( c )
    {    
    }
void test2()
{
    test();
}
};
int main()
{
    clsTemplate <int> a( 42 );
    clsChild b( 'A' );
    a.test();
    b.test();
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
58
What are the design requirements for building a container from the sratch?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
59
What will happen if an exception that is thrown may cause a whole load of objects to go out of scope?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
60
How many tests are available in read and write operations?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board