.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

Every AWT component has a ____________method that draws the specified component on a container. ?

Posted By :Nikhil Kumar     Posted Date :August 30, 2010    Points :10   Category :.NET Framework 
1, setVisible()
2, setSize()
3, paint()
4, draw()

Ansewer : 3

You can also find related Interview Question to Every AWT component has a ____________method that draws the specified component on a container. ?  below: 

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component?

  
Services:
o Communicating through a Firewall When building a distributed application with 100s/1000s of users spread over multiple locations, there is always the problem of communicating between client and server because of firewalls and proxy servers. Exposing your middle tier components as Web Services and invoking the directly from a Windows UI is a very valid option.
o Application Integration When integrating applications written in various languages and running on disparate systems. Or even applications running on the same platform that have been written by separate vendors.
o Business-to-Business Integration This is an enabler for B2B intergtation which allows one to expose vital business processes to authorized supplier and customers. An example would be exposing electronic ordering and invoicing, allowing customers to send you purchase orders and suppliers to send you invoices electronically.
o Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or binary componet-based resuse. The limiting factor here is that you can reuse the code but not the data behind it. Webservice overcome this limitation. A scenario could be when you are building an app that aggregates the functionality of serveral other Applicatons. Each of these functions could be performed by individual apps, but there is value in perhaps combining the the multiple apps to present a unifiend view in a Portal or Intranet.
o When not to use Web Services: Single machine Applicatons When the apps are running on the same machine and need to communicate with each other use a native API. You also have the options of using component technologies such as COM or .NET Componets as there is very little overhead.
o Homogeneous Applications on a LAN If you have Win32 or Winforms apps that want to communicate to their server counterpart. It is much more efficient to use DCOM in the case of Win32 apps and .NET Remoting in the case of .NET Apps. (More...)

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component?

  
. Communicating through a Firewall When building a distributed application with 100s/1000s of users spread over multiple locations, there is always the problem of communicating between client and server because of firewalls and proxy servers. Exposing your middle tier components as Web Services and invoking the directly from a Windows UI is a very valid option.
. Application Integration When integrating applications written in various languages and running on disparate systems. Or even applications running on the same platform that have been written by separate vendors.
. Business-to-Business Integration This is an enabler for B2B intergtation which allows one to expose vital business processes to authorized supplier and customers. An example would be exposing electronic ordering and invoicing, allowing customers to send you purchase orders and suppliers to send you invoices electronically.
. Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or binary componet-based resuse. The limiting factor here is that you can reuse the code but not the data behind it. Webservice overcome this limitation. A scenario could be when you are building an app that aggregates the functionality of serveral other Applicatons. Each of these functions could be performed by individual apps, but there is value in perhaps combining the the multiple apps to present a unifiend view in a Portal or Intranet.
. When not to use Web Services: Single machine Applicatons When the apps are running on the same machine and need to communicate with each other use a native API. You also have the options of using component technologies such as COM or .NET Componets as there is very little overhead.
. Homogeneous Applications on a LAN If you have Win32 or Winforms apps that want to communicate to their server counterpart. It is much more efficient to use DCOM in the case of Win32 apps and .NET Remoting in the case of .NET Apps
(More...)

Explain what is Extender provider component? How to use this in the project?

  
This is a component which provides properties and features to other components or controls. This mechanism is usually used in windows forms applications. The examples of extender provider components are ToolTip, HelpProvider, and ErrorProvider etc.

Use an extender provider in your project:
. With the help of ProvidePropertyAttribute, you can specify the name of the property that an implementer of IExtenderProvider provides to other controls, attribute to specify the property.
. Then use the provided property and try to find which control receives your provided property.
. After that use IExtenderProvider, this defines the interface for extending properties to other components. (More...)

What advantages have Web services over Component Object Model (COM) and Distributed Component Object Model (DCOM)?

  
The advantages of Web services over COM and DCOM are as follows:


Web services are simple to use and can be implemented on varied platforms.
Web services are loosely coupled; as a result, their interfaces and methods can be extended.
Web services do not carry any state information with them so that multiple requests can be processed simultaneously. (More...)

What advantages have Web services over Component Object Model (COM) and Distributed Component Object Model (DCOM)?

  
The advantages of Web services over COM and DCOM are as follows:
1.Web services are simple to use and can be implemented on varied platforms.
2.Web services are loosely coupled; as a result, their interfaces and methods can be extended.
3.Web services do not carry any state information with them so that multiple requests can be processed simultaneously. (More...)

Which Interfaces do you need to implement in a disassembling custom pipeline component

  
A disassembling pipeline component receives one message on input and produces zero or more messages on output. Disassembling components are used to split interchanges of messages into individual documents. Disassembler components must implement the following interfaces:

IBaseComponent.
IDisassemblerComponent.
IComponentUI.
IPersistPropertyBag. (More...)

Define extender provider component?

  
It provides additional features to the controls. ErrorProvider, HelpProvider, and ToolTip components are the examples of extender provider. (More...)

What is a container class?

  
A container class is a class that is used to hold objects in memory or external storage. A container class acts as a generic holder. A container class has a predefined behavior and a well-known interface. A container class is a supporting class whose purpose is to hide the topology used for maintaining the list of objects in memory. When a container class contains a group of mixed objects, the container is called a heterogeneous container; when the container is holding a group of objects that are all the same, the container is called a homogeneous container. (More...)

Which of the following method enables you to disable the layout manager for a container?

  
1, container.setLayout(0);
2, container.layout(null);
3, container.layout(0);
4, container.setLayout(null);

The Answer is : 1 (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend