Mic ET.N Flashcards
What is the difference between a Stack and Queue?
Stacks process value types by a top-down hierarchy - last in, first-out (LIFO).
Queues follow this principle and insert items from the lower end while deleting ones from the top - first in, first-out (FIFO)
What are the 3 official types of JIT compilations?
Pre-JIT, Econo-JIT, Normal-JIT
What is Kestrel?
A cross-platform ASP.NET Core web server that is included by default in ASP.NET Core project templates
When would you use asynchronous actions?
To avoid blocking the request thread while waiting for an I/O operation
What is CoreCLR?
CoreCLR is the .NET execution engine in .NET Core that performs functions like garbage collection and compilation to machine code
When you define an Abstract Method, how do you use it in a derived class?
In your derived class, override the method
Which code do you use if you want to trigger a garbage collection in .NET?
System.GC.Collect();
You want to include language elements in a program. Which design pattern best fits this objective?
Decorator
Define: Interpreter Command Bridge Decorator Adapter Singleton
???
What makes a strong-named assembly?
A signed assembly
What happens when you concatenate two strings?
A third string object is created containing the concatenated strings.
What is a delegate?
A delegate in .NET is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object
Which is a set of features that extends the query capabilities of the .NET language syntax by adding sets of new standard query operators that allow data manipulation, regardless of the data source?
LINQ
What is the single responsibility principle?
A class should have only a single responsibility - that is, only changes to one part of the software’s specification should be able to affect the specification of the class
When should a developer use the .NET Standard class library project type?
When you want to increase the number of apps that are compatible with your library, and decrease the .NET API surface area your library can access
What is the difference between a SDK (software development kit) and runtime in .NET Core?
The runtime is the virtual machine that hosts and runs the application and abstracts all the interaction with the operating system; the SDK usually includes documentation and other help files
What is the Common Type System (CTS)?
The component of CLI in which .NET Framework provides support for several languages since it contains a type system that is common with all the languages
Assuming y is a value type, which is an example of boxing?
object thisObject = y;
What is an abstract class in .NET?
An abstract class declares a behavior that implementing classes must require. It may declare only properties, methods, and events with no access modifiers. All the declared members must be implemented
What is the namespace for caching information in .NET?
System.Runtime.Caching;
What is an interface in .NET?
An interface declares a contract or behavior that implementing classes require. It may declare only properties, methods, and events with no access modifiers. All the declared members must be implemented
What does CAS stand for and what does it do?
CAS stands for Code Access Security and it enables users to restrict, on a very granular level, what managed code can do according to a level of trust