Study Day Two Flashcards

1
Q

What are Generics?

A

Feature that allows you to define classes, interfaces, methods, and delegates in a way that can work with various data types. Generics enable you to create reusable and type-safe code, improving the maintainability and performance of your applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are Nullable Types?

A

Value types that can be set to null such as int, float, bool
These can be set to null using a ‘?’ called null-condition operator or Elvis operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Lambda?

A

Are inline functions
Used to define anonymous methods and assign them to delegates or events
LINQ Queries
Sorting
Filtering
Asynchronous Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Enums?

A

Short for enumerations, are value types that define a set of named constants, representing a finite list of related values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is LINQ?

A

Language integrated Query, provides a unified query syntax for querying and manipulating data from various data sources, such as collections, arrays, databases, XML documents, and more.
Query Syntax: like SQL
Method Syntax: uses extentions by LINQ library, uses lambda expressions to define the query logic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Attributes

A

A way to add metadata, declarative information, or behavior to various program elements. Provide a standardized and extensible mechanism to add additional information to code elements without modifying the underlying structure or behavior of the code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Delegates and Events

A

A Delegate is a type that represents references to methods with a specific signature.
Events provide a standardized way of subscribing to and handling notifications, ensuring that subscribers do not interfere with each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly