C++ Programming Test By Kishor Raut - August 15, 2021 FacebookTwitterPinterestWhatsApp Welcome to your C++ Programming Test 1. Which statement is true about tuple?A. A tuple is an object that can hold a number of elements.B. The elements can be of different data types.C. The elements of tuples are initialized as arguments in order in which they will be accessed.D. All of the above 2. What will be output for the following code? #include #include using namespace std; int main() { tuple geek(20,'g',17.5); cout << ""The size of tuple is : ""; cout << tuple_size::value << endl; return 0; }A. The size of tuple is : 3B. The size of tuple is : 4C. The size of tuple is : 5D. The size of tuple is : 6 3. Which function concatenates two tuples and returns a new tuple?A. tieB. tuple_catC. tuple_conD. concat 4. Which returns the number of elements present in the tuple?A. tieB. sizeC. tuple_sizeD. size_tuple 5. Which of the following is correct about tuple_size?A. Returns the number of elements in a tupleB. Returns the maximum sized type elementC. Returns the total number of bits used by the tupleD. Returns the sum of non-string values 6. How many variants of tie() function is there?A. 1B. 2C. 3D. 4 7. ___________ word is used to ignore the unpacking of some elements of a tuple.A. stopB. ignoreC. cancelD. remain 8. What will be output for the following code? #include #include #include using namespace std; int main() { tuple tp; tp = make_tuple(""Hello"", 4, 'c'); return 0; }A. Nothing is printedB. Compile-time errorC. Run-time errorD. Exception occurs 9. Which of the following is the correct way of declaring a tuple?A. tuple tp;B. tuple tp = new tuple;C. tuple tp;D. Tuple tp; 10. make_tuple function is used for?A. used to access the tuple values and modify themB. used to assign tuple with valuesC. used to returns the number of elements present in the tupleD. None of the above 11. Which operator is used to signify the namespace in c++?A. conditional operatorB. ternary operatorC. scope operatorD. None of the mentioned 12. Identify the incorrect statement?A. Namespace is used to mark the beginning of the programB. Namespace is used to mark the beginning & end of the programC. A namespace is used to separate the class, objectsD. All of the above 13. What is the use of Namespace?A. To encapsulate the dataB. Encapsulate the data & structure a program into logical unitsC. It is used to mark the beginning of the programD. None of the above 14. What is the general syntax for accessing the namespace variable?A. namespace::operatorB. namespace,operatorC. namespace#operatorD. namespace$operator 15. The use of Namespace is to structure a program into logical units?A. TRUEB. FALSE Time is Up!