ExamVeda
Login
Home
31
What is meant by type_info?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
32
What will be the output of the following C++ code?
#include <vector> 
#include <algorithm> 
#include <iostream> 
 
using namespace std;
 
int main() 
{ 
    vector<int> v(10, 2); 
    if (all_of(v.cbegin(), v.cend(), [](int i){ return i % 2 == 0; })) 
    { 
	cout << "All numbers are even\n"; 
    } 
    else
    {
	cout << "All numbers are not even\n"; 
    }
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
33
What will be the output of the following C++ code?
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
    cout << numeric_limits<float> :: min_exponent << endl;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
34
What are Engine Adaptors?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
35
Which is used to check the error in the block?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
36
How many parameters does the throw expression can have?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
37
Which of the following syntax is used to convert any variable to its original type?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
38
What will be the output of the following C++ code?
#include <iostream> 
#include <vector> 
#include <forward_list>  
 
using namespace std; 
 
int main() 
{ 
    forward_list<int> fl1;
    fl1.assign(5,10);
    for (int&c : fl1)  
        cout << c << " ";
    cout<<endl;
    fl1.insert_after(fl1.begin(), {1,2,3});
    for (int&c : fl1)  
        cout << c << " ";
    cout<<endl; 
    return 0; 
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
39
How the list containers are implemented?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
40
How to protect the heap from affecting the memory?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board