Microsoft Expand child menu Expand. Microsoft Office Expand child menu Expand. Programming Expand child menu Expand. Testing Expand child menu Expand. Java Expand child menu Expand. Mobile Expand child menu Expand. API Expand child menu Expand. Business Expand child menu Expand. Data Analytics Expand child menu Expand. Business Intelligence Expand child menu Expand. Interview Guide Expand child menu Expand. Job Hunt Guide Expand child menu Expand. Career Guide Expand child menu Expand.
Interview Tips Expand child menu Expand. Must Read Expand child menu Expand. Tricky Expand child menu Expand. Popular Expand child menu Expand. Not to Miss Expand child menu Expand.
Most Shared Expand child menu Expand. What is. What languages does the. NET Framework support? Explain OOP and its relation to the. NET Framework? The basic features of OOP are: Encapsulation: Creation of self-contained modules that bind together the data and the functions that access that data. Abstraction: Handles complexity and allows the implementation of further complex logic without disclosing it to the user object.
Polymorphism: Operation performed depends upon the context at runtime to facilitate easy integration. Inheritance: Creation of classes in a hierarchy to enable a class to inherit behavior from its parent class allowing reuse of code. Name some OOP languages. What is JIT? What are the different types of JIT Compilers?
There are 3 types of JIT Compilers: i. What is BCL? What is FCL? What is caching in. What are the types of caching in. There are 3 types of caches in.
What is a cross-page posting? Discuss the difference between constants and read-only variables. Explain the difference between value type and reference type.
What is the difference between Stack and Heap? What are the differences between systems. StringBuilder and system. Net Interview Questions What is the difference between the While and For loop?
Provide a. NET syntax for both loops. What are a base class and derived class? What is the extension method for a class?
What is the inheritance hierarchy? Inheritance hierarchy is a singly rooted tree structure for organizing classes. What are implementation inheritance and interface inheritance? How can a class be prevented from being inherited? What is a constructor in C? Explain Different Types of Constructors in C? There are 5 types of constructors in C , as given below: Default Constructor- It is without any parameters.
Parameterized Constructor- It has one parameter. Copy Constructor- It creates an object by copying variables from another object. Static Constructor- It is created using a static keyword and will be invoked only once for all of the instances of the class. Private Constructor- It is created with a private specifier and does not allow other classes to derive from this class or create an instance of it.
Define Method Overriding. What is Shadowing? What is the difference between shadowing and overriding? What are the types of Polymorphism?
There are two types of Polymorphism: i. Static or compile-time polymorphism ii. Dynamic or runtime polymorphism Do we have multiple inheritances in. What is the Diamond of Death? What is an Interface? What are the events and delegates? What is business logic? What is the difference between a component and a control? Differentiate between user controls and custom controls.
What are the functional and non-functional requirements? Net Reflection? What is MIME? What is a Hashtable? Name design patterns in the. There are 23 design patterns classified into 3 categories: 1. Creational Design Pattern i. Factory Method ii. Abstract Factory iii. Builder iv. Prototype v. Singleton 2. Structural Design Patterns i. Adapter ii.
Bridge iii. Composite iv. Decorator v. Flyweight vii. Proxy 3. Behavioral Design Patterns i. Chain of Responsibility ii. Command iii. Interpreter iv. Iterator v. Mediator vi. Memento vii. Observer viii. State ix. What does JIT stand for in. What is the meaning of MSIL? What is CTS? What is CLS? What does CLR stand for in.
What is the difference between managed code and unmanaged code in. How does managed code execute in the. What is the meaning of state management in. This Top.
NET Interview Questions. NET is one of the platforms provided by Microsoft, which is used to build a variety of applications using Windows. The ability to develop classes, libraries, and APIs and run, debug, and deploy code onto web services and applications form are the key uses of this framework.
It supports a lot of languages, and you can work with everything from C to VB all the way to Perl, and more. There are a lot of components that make up the.
NET framework, and some of them are as follows:. JIT is the abbreviation of Just in Time. It is a compiler that is used to convert intermediate code into native code easily. NET, during execution, the code is converted into the native language, also called the byte code. This is processed by the CPU, and the framework helps with the conversion.
It is used to provide the instructions required for operations such as memory handling, exception handling, and more.
It can also provide instructions to initialize and store values and methods easily. It is a set of structured rules that govern what a data type should be for the corresponding values given by a user. It is used to describe all of the data types that are used in an application that the user is building. However, you can build your own calls using the rules given by CTS. CTS is mainly provided to cover the variety of languages you can use when working with the.
NET framework. It is put into place to ensure that the application developer is capable of inter-language operations if required. It is a reusable aspect among all of the. NET compatible languages. It forms to be the most vital component of. NET as it provides the foundation for many applications to run on. If a user writes an application in C , it gets compiled and converted to intermediate code. After this, CLR takes up the code and works on it with respect to the following aspects:.
Next up on this top. NET basic interview questions and answers, we need to understand a very important difference. Check it out. NET framework is necessary for the execution Not dependant on the. NET framework to run. There are four main steps that include in the execution of the managed code. They are as follows:. If usage and help-related texts are displayed, then we can conclude that CLI is installed properly. NET programming languages. Roslyn exposes modules for dynamic compilation to Common Intermediate Language CLI , syntactic lexical and semantic code analysis, and also code emission.
Xml , System. Collections , etc. Middleware is software assembled into an application pipeline for request and response handling. Each component will choose whether the request should be passed to the next component within the pipeline, also it can carry out work before and after the next component within the pipeline. For example, we can have a middleware component for user authentication, another middleware for handling errors, and one more middleware for serving static files like JavaScript files, images, CSS files, etc.
It can be built-in into the. In the ASP. NET Core application, these Configure methods will set up a request processing pipeline. It contains a sequence of request delegates that are called one after another. Normally, each middleware will handle the incoming requests and passes the response to the next middleware for processing. A middleware component can take the decision of not calling the next middleware in the pipeline.
This process is known as short-circuiting the pipeline or terminating the request pipeline. This process is very helpful as it avoids unnecessary work. For example, if the request is made for a static file such as a CSS file, image, or JavaScript file, etc.
It is cross-platform, so it is compatible with different operating systems such as Linux, Windows, and Mac OS. This framework is compatible with the Windows operating system only. Even though, it was developed for supporting software and applications on all operating systems. Installation Since it is cross-platform, it is packaged and installed independently of the OS. It is installed in the form of a single package for Windows OS. Application Models It does not support developing the desktop application and it focuses mainly on the windows mobile, web, and windows store.
It is used for developing both desktop and web applications, along with that it also supports windows forms and WPF applications. Performance and Scalability It provides high performance and scalability. It is less effective compared to. Net Core in terms of performance as well as scalability of applications. Packaging and Shipping It is shipped as a collection of Nugget packages.
All the libraries that belong to the. Net Framework are packaged and shipped all at once. Android Development It is compatible with open-source mobile app platforms like Xamarin, via.
NET Standard Library. Developers can make use of tools of Xamarin for configuring the mobile application for particular mobile devices like Android, iOS, and Windows phones. It does not support the development of mobile applications. CLI Tools For all supported platforms, it provides lightweight editors along with command-line tools.
Deployment Model Updated version of the. Thus, we can say that. NET Core has a very good flexible deployment model. When the updated version is released, it is deployed only on the Internet Information Server at first. Ahead-of-time AOT compilation is the process of compiling a high-level language into a low-level language during build-time, i. AOT compilation reduces the workload during run time.
AOT provides faster start-up time, in larger applications where most of the code executes on startup. But it needs more amount of disk space and memory or virtual address space to hold both IL Intermediate Language and precompiled images. The explicit compilation will convert the upper-level language into object code on the execution of the program.
Ahead of time AOT compilers are designed for ensuring whether the CPU will understand line-by-line code before doing any interaction with it. The source code generated can begin running immediately after it has been downloaded into the browser, earlier steps are not required.
AOT will analyze and compile our templates statically during build time. Template the parse errors that are detected previously during build time Security is high not required to dynamically evaluate templates Rendering of a component is faster pre-compiled templates For AOT compilation, some tools are required to accomplish it automatically in the build process.
CoreRT is the native runtime for the compilation of. NET natively ahead of time and it is a part of the new. NET Native as announced in April The type system of the CoreRT is designed in such a way that metadata for reflection is not at all required.
This feature enables to have an AOT toolchain that can link away unused metadata and can identify unused application code. Docker is an open-source platform for the development of applications, and also for shipping and running them. It allows for separating the application from the infrastructure using containers so that software can be delivered quickly. With Docker, you will be able to manage the infrastructure in the same ways you used to manage your applications.
It supports shipping, testing, and deploying application code quickly, thus reducing the delay between code writing and running it in production. The Docker platform provides the ability of packaging and application execution in a loosely isolated environment namely container. The isolation and security permit you for running multiple containers at the same time on a given host.
Containers are lightweight and they include every necessary thing required for running an application, so you need not depend on what is currently installed within the host. Xamarin is an open-source platform useful in developing a modern and efficient application for iOS, Android, and Windows with.
It is an abstraction layer used to manage the communication of shared code with fundamental platform code. Xamarin runs in a managed environment that gives benefits like garbage collection and memory allocation. This pattern permits developers for writing entire business logic in a single language or reusing existing app code but accomplish native performance, look and feel on each platform. The Xamarin applications can be written on Mac or PC and then they will be compiled into native application packages, like a.
The steps are as follows: 1. Open addition. Open the HomeController. Mvc; namespace CalculateSum. ToInt32 HttpContext. The output format is given below: Conclusion The. Useful Resources:. NET type? Boxing allows the user to convert what? Integer type to double. Value type to a reference type.
Reference type to a value type. Double type to integer. No return type for events. If the exception does not occur, will the final block get executed? There is no such block as finally.
Both catch and finally block will be executed. Runtime environment provided by. In which file. Value types. All data types in. Reference types. Communication between multiple languages. Specify root namespace used for fundamental types in.
Net framework. Which method is used to force garbage collection to run? Run method. Collection method. Finalize method. Collect method. What is the functionality of Response. Write allows you to buffer output. Write allows you to flush output. Write allows you to write formatted output. Write allows you to stream output. NET core as per NET 6.
None of the above. Developing the applications. Shipping the applications. Running the applications. All of the above. CLI tools. What is the use of microservices? Mix technologies across the service boundary. Creating and deploying a container. Windows only. Linux only. MacOS only. What is CoreFX? Toolset for the development of applications. Foundational class libraries for. Docker container. What is included within CoreCLR? Garbage Collector. JIT Compiler.
0コメント