

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following is correct about remove_all_extents() function? |
A. | Removes the all dimension from an array |
B. | Removes the first dimension from the left of the array |
C. | Removes the first dimension from the right of the array |
D. | Removes the last dimension from the left of the array |
Answer» B. Removes the first dimension from the left of the array | |
2. |
Which of the following is correct about remove_extent() function? |
A. | Removes the given dimension from an array |
B. | Removes the first dimension from the right of the array |
C. | Removes the first dimension from the left of the array |
D. | Removes the last dimension from the left of the array |
Answer» D. Removes the last dimension from the left of the array | |
3. |
Which of the following is correct about extent() function? |
A. | Returns how many elements are in array currently |
B. | Returns the size of the 1st dimension |
C. | Returns how many total elements can be stored in an array |
D. | Returns the size of a given dimension |
Answer» E. | |
4. |
What is the use of rank() function in C++? |
A. | Returns size of each dimension |
B. | Returns how many total elements can be stored in an array |
C. | Returns how many elements are in array currently |
D. | Returns the dimension of an array |
Answer» E. | |
5. |
What is the use of is_same() function in C++? |
A. | To check if a variable is array type or not |
B. | To check whether two variables have the same characteristics |
C. | To check if two variable is of array type or not |
D. | To check whether two variables are different or not |
Answer» C. To check if two variable is of array type or not | |
6. |
What is the use of is_array() function in C++? |
A. | To check if a variable is array type or not |
B. | To check if a variable is 1-D array type or not |
C. | To check if a variable is 2-D array type or not |
D. | To check if a variable is 1-D or 2-D array type or not |
Answer» B. To check if a variable is 1-D array type or not | |
7. |
Which of the header file is used for array type manipulation? |
A. | <array> |
B. | <type_traits> |
C. | <iostream> |
D. | std namespace |
Answer» E. | |