c# Dot net interview questions

c#questions and answers

c# interview questions and Answers

1.When call by value, call by reference, call by out?

 
 CALL BY VALUE:
Whenever we want to pass some value to a function. The modifications are not expecting to reflect back. To actual parameter then we will pass it as CALL BY VALUE.
 
CALL BY REFERENCE:
Whenever we want to pass some value and we are expecting the modifications. Should be reflected back to actual parameter then we will pass it as CALL BY REFERENCE.
 
CALL BY OUT:
Whenever we don’t want to pass any values but we are expecting back the modifications. then we will pass the particular parameter as CALL BY OUT.
 
2. What is Encapsulation? How can we achieve?
 
A) Wrapping STATES and BEHAVIOURS called as ENCAPSULATION. (Or) Binding VARIABLES and METHODS called as ENCAPSULATION. By implementing class we can achieve ENCAPSULATION.
 
3. What is abstraction? How can we achieve?
 
Abstraction means HIDING.
 
Abstractions are 2 types.
 
1) data abstraction:-
 
Hiding unwanted data called as data abstraction
 
2) Method abstraction:-
 
Invoking required method and hiding unwanted method called as method abstraction.
 
With the help of FUNCTION OVERLOADING, we can achieve Method ABSTRACTION.
 
4. What is Inheritance? Types of Inheritance?
 
Inheriting or deriving members from one class. To another class called as INHERITANCE.
 
C#.Net will support 5 types of Inheritance. They are
  • Single Inheritance 
  • Multi-level Inheritance 
  • Many Inheritance 
  • Hierarchical Inheritance 
  • Hybrid Inheritance.
 5. Is C#.Net will support much Inheritance?
 
In C#.NET many inheritances are not possible by using classes. which is possible with the help of INTERFACES.
 
6. What sealed class? When will we go for sealed class?
 
While characterizing a class, in the event that we have utilized ―sealed‖ watchword. Then that class can be called as SEALED CLASS. It can’t be acquired.
 
At whatever point we need to confine to get a class we can go for fixed class.
 
7.Why property?

 

  • To assign the value to a class level variable. After creating the object to retrieve the value from the class level variable
     
  • The property will provide SECURITY to variable data.
     
  • The property will provide VALIDATION FACILITY for variable data.
    At the time of Assigning.
 
8. What is static polymorphism and dynamic polymorphism?
 
A) STATIC POLYMORPHISM:
 
A method which will bind at compile time will execute. In runtime called as static polymorphism or early binding or compile time polymorphism
 
DYNAMIC POLYMORPHISM:
 
A method which will bind at compile time will not execute, instead of that a method. which will bind at runtime will execute called as RUNTIME POLYMORPHISM.
 
9. What is function overloading? When will we go for function overloading?
 
A) FUNCTION OVERLOADING: Having many methods with the same name but a different no. of arguments or the different type of arguments or different order of arguments. In a single class or in a combination of base and derived class.
 
WHEN: Whenever we want to install the same method with the different functionalities. Then we have to go for FUNCTION OVERLOADING
 
10.Difference between constructor and property?
 
Constructor
 
It used to initialize the instance variables at the time of creating an object.
 
PROPERTY
 
It used to assign the value to the class level variables as well as can retrieve the value from class level variables
 

For more Dot net interview questions: click here

Dot training in Hyderabad: 

Kosmik provides dot net training in Hyderabad. we are providing lab facilities with complete real-time training and training based on advanced concepts.

 

web dot net training institutes in kukatpallyIntroduction to Networking and the sector wide web dot net training institutes in kukatpally

 The Recent growth of net and sector wide internet makes the arrival of a completely new generation. The web now took into consideration to be a prime motive force of the way society accesses and views records. The result of numerous initiatives in laptop network funded by using the federal government finish over the last forty years. The projects produced communications protocols that outline the format of community messages, prototype networks, and alertness packages which include browsers. These studies capitalize on the ubiquity of the nation’s smartphone community which supplies the underlying physical infrastructure upon which the net become built. Dot net training in kphb

Magazine Articles: web dot net training institutes in kukatpally  

“Dealing with in a stressed out world” seems to July 11, 1994, trouble of FORTUNE this newsletter seems at how pc network influences groups.  some of periodicals are held to cover the net, international wide, net and digital communications.  They include magazines, newsletters, journals and online electronic magazines (every now and then referred to as Ezines).  

Books web dot net training institutes in kukatpally   

  • The net Unleashed 2nd edition
  • Navigating the internet

Resources for Nonprofits: Dot net training in kphb

CompuMentor is a nonprofit organization that facilitates other nonprofits, public businesses, and colleges use generation efficaciously. Their internet website online includes aid facilities for non-profits, educators, and volunteers.

Affiliations and meetings: web dot net training institutes in kukatpally  

Companies and organizations within the greater Washington area and national let you examine greater or emerge as greater activity in network communications.   Up-to-date lists of unmarried and habitual occasions.  Local national or global are also to be had. web dot net training institutes in kukatpally  

people or agencies who simply need to browse the net, send e-mail or use other fundamental centers will want most effective laptop, modem, communications software and easy manner of getting access to the internet.  if you need to apply the most sophisticate graphics and the animation skills of the sector extensive internet. however, even older, slower computers can employ maximum of the internet’s information and communications sources. It doesn’t price a great deal to end up an finished network person. Even those who want to create a world extensive net presence will locate many low-priced alternatives, although ambitious web sites will require extra state-of-the-art system and services.

The Uniform Resource Locator (URL)

Computer systems on the internet use the Uniform Resource Locator (URL) to make a connection with an internet browser and the target web server. The URL is the address of a record. A URL can comprise a filename bookmark to a particular place inside the file server on which the report resides and scheme tells how the document retrieves. Dot net training in kphb

Learn About the Services Offered By Dot Net Development Companies

Dot net training institutes in kukatpally

Learn About the Services Offered By Dot Net Development Companies dot net training institutes in kukatpally

The first-rate software program development company continues price-powerful and full of talent individuals. This sort of carrier will construct web, cellular and window-based programs the usage of the state-of-the-art blend of technology to ensure progressive, interactive, in addition to immersive experience for all users. Dot net training in kphb

Improvement services of Dot net training institutes in kukatpally. 

Each character has a distinct set of unique wishes and that they should be address. In order for customers to acquire their respective goals, they have to search for an ASP. net improvement employer that embraces the brand new technology which include the Microsoft. Net platform, ASP. Net four.5, ASP. net MVC 4, XTML, internet offerings, XTHML, HTML5, Ajax, CSS3, Cloud computing, fb API, and many extra, to solve the desires of their customers. Ideally, such groups personalize software program applications to make sure that customers’ ideas are introduce to fruition. They have to be able to build any sort of customized utility, whether it’s in step with commercial enterprise methods, fb packages, set-up software, responsive websites, CMS application, net or cell programs. Dot net training in kphb

Technical Consultancy

If you already have a development team in vicinity and would really like some recommendation on architectural guidelines, analysis, or a way to undertake the high-quality improvement practices and pilot programs, then a enterprise that gives sound technological consultancy offerings would be the best alternative for you. They provide professional guidelines and pointers so as for the improvement crew to build upon. Similarly to that, they offer training to a client’s improvement crew in order for them to move their packages to the equal level. Dot net training institutes in kukatpally.

They can check an current customer’s software and offer beneficial inputs on scalability, architectural enhancements, and overall performance in addition to security troubles. Other than that, such organizations offer consultancy offerings to leverage and integrate diverse social media platforms and search engine optimization techniques that generate greater site visitors, making the application move viral within the shortest time period feasible. Dot net training in kphb

Low price, Time and quality development Of programs Is What matters

Your perfect .net development corporation should be capable of offer the right mixes of high-quality improvement at reasonable price. So the pricing version that they use should make feel to any unique consumer. The project at hand is  honestly-defined capability, then it can be charged based totally on a hard and fast budget model. Different companies price on an hourly basis for any future requirements that is OK. Dot net training institutes in kukatpally.

Basically, such kind of transparency permits a patron to be privy to the time strains and cost estimates, which lets in them to plot well for the task at hand.  the price permit not any hidden expenses that a consumer will incur by any means. Dot net training in kphb

Agile process

This  system that uses to ensure that each step taken on a consumer’s challenge is carried out consistent with their desires. This improvement process creates an opportunity for close interplay with clients to make sure that the quit end result is as per their specification. Under such instances, monitoring and task control equipment uses to enable clients screen the development of their projects at any given time. Dot net training institutes in kukatpally

In brief, the agile technique places the clients in a function where they will be capable of prioritize obligations whilst imparting early comments in order that the organization in query can deliver the proper solution in the long run. That’s what the high-quality. Internet development business enterprise is more capable . Dot net training in kphb