C++ Programming Test

    Welcome to your C++ Programming Test

    1. Which statement is true about tuple?
    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; }
    3. Which function concatenates two tuples and returns a new tuple?
    4. Which returns the number of elements present in the tuple?
    5. Which of the following is correct about tuple_size?
    6. How many variants of tie() function is there?
    7. ___________ word is used to ignore the unpacking of some elements of a tuple.
    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; }
    9. Which of the following is the correct way of declaring a tuple?
    10. make_tuple function is used for?
    11. Which operator is used to signify the namespace in c++?
    12. Identify the incorrect statement?
    13. What is the use of Namespace?
    14. What is the general syntax for accessing the namespace variable?
    15. The use of Namespace is to structure a program into logical units?