Question: answer t or f if false explain why, c#/.net based questions 1. T/F A delegate allows you to define a method, and later, assign a
answer t or f if false explain why, c#/.net based questions
1. T/F A delegate allows you to define a method, and later, assign a method that will run when the delegate is called
2. T/F You can only assign a single method to a delegate.
3. T/F Events can be raised by objects even if there are no listeners registered to handle the event.
4. T/F EventArgs can be used to pass additional information to an event handler
5. T/F When adding an indexer to a class, you must have both get and set options
6. T/F An extension method allows you to add additional methods to a class without having to modify the actual class
7. T/F A lambda expression is an anonymous method
8. T/F A lambda expression can be used to make a computed value appear like a Property.
9. T/F Query expression syntax can be used on any ICollection
10. T/F Query clauses can alternatively be called by using methods
ZOOM
Name _________________________
Score ______
1. Using threads allows you to __________________________________________
2. T/F When multiple threads are accessing the same object, you should use blocks to prevent them from accessing it
at the same time and overwriting changes the other made.
3. T/F ThreadPool is useful to ensuring you dont create too many threads that compete for processor time and end
up slowing each other down
4. T/F The await keyword allows C# to continue past code that is calling an async method and will complete the code
after await once the async method completes.
5. T/F Task
6. T/F The yield keyword allows a method to return a value and wait to continue running until it is called again
7. T/F - The nameof() operator is used to get the string value a variable references
8. T/F const variables are automatically set as static
9. T/F using the dynamic type allows C# to use typeless variables, which could cause Runtime errors if we attempt to
use them in ways that cant happen at runtime
10. T/F using the unsafe keyword allows for direct manipulation of memory and pointers, like using C++ in our C# code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
