MCQ Bank
A matrix is nothing but a ________ of numbers.
- A) Two-dimensional array
- B)
- C)
- D)
A programmer can ________ the simple matrix class to handle the integer, float, or double data type as elements of the given matrix.
- A) Hide
- B)
- C)
- D)
in C and C++ language, every expression has a ________ of its own?
- A) Value
- B)
- C)
- D)
The cycle of testing and ________ continues until the program is working perfectly without any problem.
- A) Bug fixing
- B)
- C)
- D)
Default scope for members of structures is ________ and default visibility for class members is ________
- A) Public, Private
- B)
- C)
- D)
If A and B are two matrices of order M*N to be added then their resultant matrix will have an order of
- A) M*N
- B)
- C)
- D)
if m is a matrix object, then self-assignment can be avoided by using following code statement
- A) If (&m!=this);
- B)
- C)
- D)
Which of the following is correct format of template function?
- A) Template <class T>
- B)
- C)
- D)
In template class, compiler makes a copy of ________ and convert in to ________
- A) Source code, Object code
- B)
- C)
- D)
For a matrix, the variables of Rows and Columns should always be a ________
- A) Whole Number
- B)
- C)
- D)
After implementation of code is completed, we do its ________ to verify that it is behaving properly in all scenarios.
- A) Testing
- B)
- C)
- D)
which three constructs do we need to solve any problem?
- A) Classes, structures, functions
- B)
- C)
- D)
Declaration and definition of a template function should be in the ________ file
- A) same
- B)
- C)
- D)
For template function, we must have at least ________ generic argument.
- A) One
- B)
- C)
- D)
In C++, which of the following option has the correct meaning of the expression "a<=b"?
- A) a is less than or equal to b
- B)
- C)
- D)
What will be the output of the following code? int x=15; int y=10; int z=5; cout<< x*x-4*y*z;
- A) 25
- B)
- C)
- D)
Which of the following expression is correct in C/C++ language?
- A) X=X+3
- B)
- C)
- D)
Which of the following C++ statement is used to take input from the user?
- A) cin
- B)
- C)
- D)
Which of the following is an example of logical operator?
- A) &&, ||
- B)
- C)
- D)
in C/C++, which of the following data type is used to store real numbers?
- A) Float
- B)
- C)
- D)