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?

`#include`

`#include`

using namespace std;

int main ()

`{`

vector<bool> mask;

mask.push_back(true);

mask.flip();

cout << boolalpha;

for (unsigned i = 0; i < mask.size(); i++)

cout << mask.at(i);

return 0;

`}`

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