ExamVeda
Login
Home
61
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main ()
{
    int i;
    cout << "Please enter an integer value: ";
    cin >> i + 4;
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
62
Map is implemented using . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
63
How many types of exception handling are there in c++?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
64
Which are instances of a class with member function operator() when it is defined?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
65
What is the use of fill() function in array class?
Discuss
Answer & Solution
Answer: Option A
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 <fstream>
using namespace std;
int main () 
{
    ofstream outfile ("test.txt");
    for (int n = 0; n < 100; n++)
    {
        outfile << n;
        outfile.flush();
    }
    cout << "Done";
    outfile.close();
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
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 <string>
#include <algorithm>
using namespace std;
int main() 
{
    string s = "spaces in text";
    s.erase(remove(s.begin(), s.end(), ' ' ), s.end() ) ;
    cout << s << endl;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
68
What is the use of emplace() function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
69
What will be the output of the following C++ code?
#include<iostream>
#include<any>
using namespace std;
int main()
{
	int a = 5;
	any var = a;
	cout<<var<<endl;
	return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
70
Which one is always faster in writing on C++?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board