ExamVeda
Login
Home
61
How many parameters does a operator() in a function object shoud take?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following C++ code?
#include <iostream>
#include <complex>
using namespace std;
int main()
{
	complex <double> cn(3.0, 4.0);
	cout<<"Norm is: "<<norm(cn)<<endl;
	return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
63
What will be the output of the following C++ code?
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
    cout << RAND_MAX << endl;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
64
Which of the following is correct about remove_all_extents() function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
65
What is the use of includes function in c++?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following C++ code?
#include <iostream>
#include <cctype>
using namespace std;
int main(int argc, char const *argv[])
{
    char arr[12] = "H3ll0\tW0r1d";
    for(int i=0;i<12;i++)
    {
	cout<<(bool)iscntrl(arr[i]);
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following C++ code?
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main ()
{
    int numbers[] = {10, -20, -30, 40, -50};
    int cx;
    cx = count_if ( numbers, numbers + 5, bind2nd(less<int>(), 0) );
    cout << cx;
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
68
What will be the output of the following C++ code?
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
	bitset<8> b1(95);
	bitset<8> b2(46);
	cout<<(b1^b2);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
69
If i1 is Input Iterator and i2 is Output Iterator, then which of the following things are correct?
i) cout<<*i1;
ii) i2 can be used with == operator
iii) *i1 = 1
iv) i2--
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
70
Identify the incorrect statement.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board