Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, 14 June 2014

10 key questions for preparing an Interview .NET language

Top 10 Freshers level Interview questions

1. The very first thing that you just need to know about the .NET language is what does (.) represent in the language? What do you know about .NET and its framework? (.) Represent the interconnection of the various network applications. It was the personal language built by the Microsoft. NET is just as simple as other language like C, C++ and Java. In fact, most of the syntax that we are using in the language is similar so it is easy to use.
.NET Framework: It is a development and execution environment that allows different programming languages and libraries to work together effortlessly to create Windows-based application that are easier to build, manage and deploy.

2. Read more about why the language is not platform independent like Java.? .NET is Platform Dependent since once the code is written it is compiled into Microsoft Intermediate Language (MSIL) code which is independent of platform but it is half compiled code, then Common Language Runtime (CLR) convert it into device specific code i.e. it is platform dependent while we know the output of the Java compiler is not executable code. Rather, it is bytecode. Translating a Java program into bytecode makes it much easier to run a program in a wide variety of environments because only the JVM (Java Virtual Machine) need to be implemented for each platform.

3. Pick out the catchy differences between Java and .NET. 
.NET is platform dependent whereas Java is platform independent. 
.NET support cross level integration while Java doesn't support cross level integration.
.NET is created by Microsoft while Java is created by Sun Microsystem. 

4. Explain the OOP concept? The 3 main concepts are:
I. Inheritance: It is defined as the mechanism of deriving a new class from a base class. It allows reuse of existing code.
II. Encapsulation: It is defined as the wrapping up of data and function into single class. Encapsulation is done by arranging the data hierarchically.
III. Polymorphism: Polymorphism means one name multiple forms. It allows us to have more than one function with the same name in the program

Click imagination hunt to see latest Blogs

5. What is Postback and Partitioning Postback? Postback: Unnecessary send the whole page information to the server. It involves the change of values of all the controls.
Partitioning Postback: Only required control or information must send to server. It involves changing the values only on the update panel.

6. What are Array and Collections? Array: Array which store similar values. Array can be both Reference type and Value type. There are three different types of array:
Single-Dimensional, contain single value.
Multidimensional, contain elements in dimension. Most common is two-dimensional array.
Jagged array, which contain elements of different dimensions and sizes.

Collection: Collection which store different values. At its most complexes it holds references too many other objects. There are two different types of Collection:
Standard Collections, which are found under the System.Collections namespace.
Generic Collections, under System.Collections.Generic. The generic collections are more flexible and are the preferred way to work with data to enhance code reuse, type safety, and performance.

7. What are Constructors and types? Define Copy Constructors? A Constructor initializes an object immediately upon creation. It has the same name as the class in which it resides and is syntactically similar to a method. Once defined, the Constructor is automatically called immediately after the object is created, before the new operator completes. Constructors look a little strange because they have no return type, not even void. Constructor is called by using new keyword.
3 types of constructor are there:
Default Constructor: In which method with same name of the class is made with no parameter.
Parameterized Constructor: In which the parameters (single or multiple) i.e. at least one parameter is passed in the method which has the same name as the class name.
Copy Constructor: In which constructor function has the same name as the name of the class and has to use deep copy of the object. Copy Constructor is a similar to parameterized constructor in which the copy of the method in the derived class is made with same parameters.

Click imagination hunt to see latest Blogs

8. What is the use of Abstract keyword? Point out some difference between Abstract and Interface?  Abstract keyword can be used with class as well as method. But only abstract classes can have abstract methods. Without inheritance you cannot use the functionality provided by abstract methods. Child class has to give the implementation of abstract method. Some differences between Abstract and Interface:
Abstract classes are used to increase re-usability in inheritance while interfaces are used to implement or force some methods across classes.
In Abstract classes parent level functionality can be accessed by child class while in interfaces child level functionality can be accessed by parent class.
Abstract classes are inherited while interfaces are implemented.

9. Explain Inheritance? Inheritance: Inheritance means acquiring the properties of parent class to the child class plus with a feature of addition.
Single inheritance: Class B is derived from base class A. A-> B
Multiple inheritance: Multiple inheritance is not achieved easily. Class C is derived from base class A and B. A, B-> c
Multilevel inheritance: Class B is derived from base class A; C is derived from B class. A-> B-> C. Multiple is not supported in C#.
Hybrid inheritance: Class B and C derived from base class A. A-> B, C

10. What is the difference between property and method? What is method overloading and overriding?  
Properties follow different naming convention for read and write hence it is bidirectional while method can read or write a value but not both hence it is unidirectional.
In property value as an operator assigned while in method value as a parameter assigned.
Property process only single value at a time while method can process multiple values at a time.
Property can execute at both run time and designed time while method can execute at run time.
Method Overloading: Having different method with the same name but different parameter within the same class.
Method Overriding: Having same name and signature for the method in base and derived class and derived method inherit the base class method. Same signature means same number of argument and same type of argument.

For any query, comment us below.

Click imagination hunt to see latest Blogs

Keep learning and sharing...

No comments:

Post a comment

Featured post

Think that makes you rich and richer

 Napolean said: “You can think and grow rich, but if you can be brought up like most people with work and you won't starve, this wil...