Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

Chapter 7 Generics MCQs

14 min Score: 0 Attempted: 0/14 Subscribe
1. . Which of the following allows us to call generic methods as a normal method?





2. . Which of these type parameters is used for a generic class to return and accept a number?





3. . Which of these type parameters is used for a generic method to return and accept any type of object?





4. . Which of the following is faster, StringBuilder or StringBuffer?





5. . What are generic methods?





6. . Which of the following cannot be type parameterized?





7. . Which of these exception handlers cannot be type parameterized?





8. . What is meant by the term generics?





9. . Are generics in C# the same as the generics in Java and templates in C++?





10. . Choose the advantages of using generics?





11. . Which of these is a correct way of defining a generic method?





12. . Which of the following types of reference cannot be generic?





13. . Which of these types cannot be used to initiate a generic type?





14. . Which of this instance cannot be created?





Contents Copyrights Reserved By T4Tutorials