Exam 20: Generics
Exam 1: Introduction to Computers, the Internet and Visual C#49 Questions
Exam 2: Dive Into Visual Studio Community25 Questions
Exam 3: Introduction to C# Apps41 Questions
Exam 4: Introduction to Classes,Objects,Methods and Strings50 Questions
Exam 5: Control Statements: Part 194 Questions
Exam 6: Control Statements: Part 266 Questions
Exam 7: Methods: a Deeper Look95 Questions
Exam 8: Arrays;Introduction to Exception Handling90 Questions
Exam 9: Introduction to Linq and Generic Collections27 Questions
Exam 10: Classes and Objects: A Deeper Look79 Questions
Exam 11: Object-Oriented Programming: Inheritance51 Questions
Exam 12: Object-Oriented Programming: Polymorphism62 Questions
Exam 13: Exception Handling: A Deeper Look58 Questions
Exam 14: GUI With Windows Forms: Part 164 Questions
Exam 15: GUI With Windows Forms: Part 273 Questions
Exam 16: Strings,Characters and Regular Expressions92 Questions
Exam 17: Files and Streams39 Questions
Exam 18: Searching and Sorting19 Questions
Exam 19: Data Structures28 Questions
Exam 20: Generics22 Questions
Exam 21: Collections35 Questions
Exam 22: Databases and LING25 Questions
Exam 23: Asynchronous Programming With Async and Await37 Questions
Exam 24: XML72 Questions
Exam 25: GUI With Windows Presentation Foundation60 Questions
Select questions type
The ________ clause specifies the type constraint for type parameter T.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
C
Generic methods can be overloaded by non-generic methods that have the same method name and the same or different number of method parameters.
Free
(True/False)
4.9/5
(33)
Correct Answer:
True
When a method is called,the compiler tries to find a method that matches the _________ of the method call.
(Multiple Choice)
4.9/5
(34)
It's not possible to apply multiple constraints to a type parameter.
(True/False)
4.9/5
(37)
Generic methods are often used to perform similar operations on different types of data.
(True/False)
4.9/5
(26)
When the compiler encounters a method call,it attempts to locate a method declaration that has the same signature as the method call.
(True/False)
4.8/5
(41)
Generics provide __________ that allows the compiler to catch invalid types.
(Multiple Choice)
4.9/5
(31)
All generic method declarations have a type parameter section delimited by __________.
(Multiple Choice)
4.7/5
(32)
A generic method's body is declared differently than that of any other method.
(True/False)
4.9/5
(38)
You can use explicit type arguments to indicate the exact type that should be used to call a generic method (e.g.,< int >).
(True/False)
4.8/5
(38)
If there's a constructor constraint,the type argument's class must not provide constructors.
(True/False)
4.8/5
(33)
IComparable objects cannot,by default,be used with generic code.
(True/False)
4.9/5
(31)
A ________ provides a means for describing a class in a type-independent manner.
(Multiple Choice)
4.9/5
(30)
The type constraints determine the operations that can be performed on the type parameters.
(True/False)
4.9/5
(35)
__________ enable you to specify,with a single class declaration,a set of related classes.
(Multiple Choice)
4.8/5
(35)
A class can provide two or more generic methods that specify the same method name but with different number of method parameters and/or type parameters.
(True/False)
4.8/5
(28)
Showing 1 - 20 of 22
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)