VB.NET tagged Questions - Page 1

What is Polymorphism? How does VB.NET achieve polymorphism?

It is a feature that allows one interface to be used for general class of actions. The specific action is determined by the exact nature of the situation. In general polymorphism means "one interface, multiple methods", This means that it is possible to design a generic interface to a group of related activities. This helps reduce complexity by allowing the same interface to be used to specify a general class of action. It is the compiler's job to select the specific action (that is, method) as it applies to each situation.

Private Class Token

Public Function Display() As String
'Implementation goes here
Return "base"
End Function
End Class
Private Class IdentifierToken
Inherits Token
Public Shadows Function Display() As String
'What is the use of new keyword
'Implementation goes here
Return "derive"
End Function
End Class

Private Shared Sub Method(t As Token)
End Sub
Public Shared Sub Main()
Dim Variable As New IdentifierToken()
'Which Class Method is called here
End Sub

What is the difference between a constructor and a method?

A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.

A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.

Difference between value types and reference types in .NET

Most programming languages provide built-in data types, such as integers and floating-point numbers, that are copied when they are passed as arguments (that is, they are passed by value). In the .NET Framework, these are called value types. The run-time supports two kinds of value types:

Built-in value types:
The .NET Framework defines built-in value types, such as System.Int32 and System.Boolean, which correspond and are identical to primitive data types used by programming languages.

User-defined value types:
Your language will provide ways to define your own value types, which derive from System.ValueType. If you want to define a type representing a value that is small, such as a complex number (using two floating-point numbers), you might choose to define it as a value type because you can pass the value type efficiently by value. If the type you are defining would be more efficiently passed by reference, you should define it as a class instead.
Variables of reference types, referred to as objects, store references to the actual data.

Following are examples of the reference types:

Following are the built-in reference types:

Difference between abstract class and interface in .net

Abstract Class
Here inheritance is possible, instantiating object is not possible
The Abstract class Abstract method will be implement only in derived class by OVERRIDE.
At least one Abstract method is must and should in Abstract Class.

It’s a pure abstract class.
It has only Abstract methods no implementation. Implement methods through class.

Can inherit can’t create object to interface.

Public Access modifier not private

It’s a indicator. It indicates what, class must provide after inherited the interface. OVERRIDE no need.

Multiple inheritance is possible through Interface only in C#.

.Net Interview Questions and Answers for Experienced

What is the difference between a thread and a process?

What is the difference between an EXE and a DLL?

What is strong-typing versus weak-typing?

What is the difference between a.Equals(b) and a == b?

What is boxing?

Is string a value type or a reference type?

What is the Global Assembly Cache (GAC)? What problem does it solve?

What is an Interface and how is it different from a Class?

What is Reflection?

Conceptually, what is the difference between early-binding and late-binding?

When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?

What is an Asssembly Qualified Name? Is it a filename? How is it different?

How is a strongly-named assembly different from one that isn’t strongly-named?

What does this do? sn -t foo.dll

How does the generational garbage collector in the .NET CLR manage object lifetime? What is non-deterministic finalization?

What is the difference between Finalize() and Dispose()? (external article)

What is the difference between in-proc and out-of-proc? What technology enables out-of-proc communication in .NET?

What is FullTrust? Do GAC’ed assemblies have FullTrust?

What is the difference between Debug.Write and Trace.Write? When should each be used?

What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?

What is the difference between: catch (Exception e) {throw e;} and catch (Exception e) {throw;} ?

What is the difference between typeof(foo) and myFoo.GetType()?

What is the purpose of XML Namespaces?

What is the difference between an XML "Fragment" and an XML "Document"? (XML Basics)

How would you validate XML using .NET?

What is a PostBack?

What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? Why is it either useful or evil?

What Session State providers are available in ASP.NET? What are the pros and cons of each?

What is the OO relationship between an ASPX page and its CS/VB code behind file?

How would one implement ASP.NET HTML output caching, caching outgoing versions of pages generated via all values of q= except where q=5 (as in http://localhost/page.aspx?q=5)?

What are HttpHandlers?

What are HttpModules?

What is needed to configure a new extension for use in ASP.NET? For example, what if I wanted my system to serve ASPX files with a *.jsp extension?

How do cookies work? What is an example of Cookie abuse?

What kind of data is passed via HTTP Headers?

How does IIS communicate at runtime with ASP.NET? Where is ASP.NET at runtime in the different versions of IIS (5 to 7)?

Whats the difference between an abstract class and interface? When would you want to use them?

What's the difference between a left join and an inner join?

What's the difference between viewstate and sessionstate?

What's the difference between overriding and overloading a method? Explain how both are done.

What's the difference between protected and internal? What about "protected internal"?

How do short-circuited operators work?

Explain what the StringBuilder class is and why you'd want to use it?

What's the difference between a static method and a non-static method?

What does the "volatile" keyword in C# mean?

Explain what happens when you pass a "ref" or "out" parameter into a method. What's the difference between those two keywords?

What's a weakreference? When would you want to use one?

What's the difference between a DataTable and a DataReader?

What's the difference between a value-type and a reference type?

What does the "readonly" keyword in C# mean?

Why was .NET called .NET?

.NET enabled Microsoft's marketing people to emphasise the "Network"-ing aspect of its technologies, and was also a reaction to the marketing blitz by Sun Microsystems in the late 1990s whose theme was "The network is the computer". The term "Dot-Com" was synonymous with the Internet that time, and "Dot-NET" was a play on that term.

I don't think it is a bad name at all, the problem was that Microsoft named so many products with the ".Net" nomenclature like .NET My Services and Microsoft .NET Enterprise Servers where the latter had nothing to do with the Internet. It caused so much confusion. Only later did Microsoft correct things by limiting the .NET name to technologies related to the Managed Runtime Framework.

Honeywell .net interview questions

1. Tell me about your experience ?
2. Can you explain your project and what's responsibility in your project ?
3. What is the principle in OOPS Concept ?
4. Can you explain OOPS Concept ?
5. What is Polymorphism , can you explain it ?
6. Tell me how to implement polymorphism in your project ?
7. What is Dynamic Polymorphism ?
8. What is Interface ?
9. What is difference Interface and Abstract function ?
10. In Sql Sever , what is the difference between standard editions and enterprise edition ?
11. What are the difficulties in Sql Server 2005 ?
12. What is the difference between sql server 2005 and sql server 2008 ?
13. What are the bindings in WPF?
14.What are layout panel in WPF ?
15. What is the difference between clustered index and non clustered index?
16. What is Self Join ?
17. What is the difference between data access layer and business logic layer ?

Similar Tags