CPP

CPP

Vector Arithmetic has 7 Questions
Which of the following library is used to do vector arithmetic?

Boost
Time
OpenGL
None of the mentioned
Which header file is used to manipulate the vector algebra in c++?

math
cmath
vmath
None of the mentioned
What type of reference should be used in vector arithmetic?

dynamic
const
Both a & b
None of the mentioned
What is the output of this program?
  1.     #include 
  2.     #include 
  3.     using namespace std;
  4.     int main ()
  5.     {
  6.         vector<bool> mask;
  7.         mask.push_back(true);
  8.         mask.flip();
  9.         cout << boolalpha;
  10.         for (unsigned i = 0; i < mask.size(); i++)
  11.         cout << mask.at(i);
  12.         return 0;
  13.     }

false
true
Both a & b
None of the mentioned
Which function is used to optimize the space in vector?

at
bool
operator
None of the mentioned
What is the use of vector arithmetic in c++?

Computer graphics
Computer booting
Both a & b
None of the mentioned
What will be the type of output of vector cross product?

Scaler
Vector
Both a & b
None of the mentioned