.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 >> Others >> Post New Question Subscribe to Interview Questions

Can you describe WCF ?

Posted By :Gaurav Arora     Posted Date :August 22, 2009    Points :10   Category :Others 
In Simple words, WPF stands for Windows Presentation Foundation.

In detailed view WPF is a new library to create the UI for smart client applications. Most noteable point is : application does not use Window handles. It is easy to resize the UI and supports sound video.


Definition of WPF is : Windows Presentation Foundation (WPF) is Microsoft's development tool for Web applications and rich client applications.With WPF, developers can use XAML, the Extensible Application Markup Language, to create custom controls, graphics, 3D images and animations that are not available in traditional HTML implementations.

You can also find related Interview Question to Can you describe WCF ?  below: 

Describe the three levels of data abstraction?

  
The are three levels of abstraction:
1.Physical level: The lowest level of abstraction describes how data are stored.

2.Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship among those data.

3.View level: The highest level of abstraction describes only part of entire database. (More...)

Describe ways of cleaning up objects.

  
The run time will maintain a service called as garbage collector.
this service will take care of deallocating memory corresponding to
objects.it works as a thread with least priority.when application
demenads for memory the runtime will take care of setting the high
priority for the garbage collector,so that it will be called for execution
and memory will be released.the programmer can make a call
to garbage colector by using GC class in system name space. (More...)

Describe the techniques for optimising your application?

  
. Avoid round-trips to server. Perform validation on client.
. Save viewstate only when necessary.
. Employ caching.
. Leave buffering on unless there is a dire need to disable it.
. Use connection pooling.
. Use stored procedures instead of in-line SQL or dynamic SQL. (More...)

Can you describe IUKNOWN interface in short ?

  
Every COM object supports at least one interface, the IUnknown interface. All interfaces are classes derived from the base class IUnknown. Each interface supports methods access data and perform operations transparently to the programmer. For example, IUnknown supports three methods, AddRef, Release(), and QueryInterface(). Suppose that pinterf is a pointer to an IUnknown. pinterf->AddRef() increments the reference count. pinterf->Release() decrements the reference count, deleting the object when the reference count reaches zero. pinterf->QueryInterface( IDesired, pDesired) checks to see if the current interface (IUnknown) supports another interface, IDesired, creates an instance (via a call to CoCreateInstance()) of the object if the reference count is zero (the object does not yet exist), and then calls pDesired->AddRef() to increment the reference count (where pDesired is a pointer to IDesired) and returns the pointer to the caller. (More...)

What is transact-SQL? Describe its types?

  
Types of Transact-SQL:
----------------------
SQL Server Provides three types of Transact-SQL statements namely DDL, DCL, and DML.

Data Definition Language (DDL):
--------------------------------
It allows creating, altering and dropping database objects.

Data Control Language (DCL):
----------------------------
It is used to control access to data in the database.
It controls permission on the database objects using grant, revoke or deny statement.

Data Manipulation Language (DML):
--------------------------------
It involves retrieval, insertion, deletion, modification in the database.
It includes select, insert, update, and delete command. (More...)

Can you describe WPF?

  
In Simple words, WPF stands for Windows Presentation Foundation.

In detailed view WPF is a new library to create the UI for smart client applications. Most noteable point is : application does not use Window handles. It is easy to resize the UI and supports sound video.


Definition of WPF is : Windows Presentation Foundation (WPF) is Microsoft's development tool for Web applications and rich client applications.With WPF, developers can use XAML, the Extensible Application Markup Language, to create custom controls, graphics, 3D images and animations that are not available in traditional HTML implementations. (More...)

Describe the accessibility modifier protected internal.

  
It's available to derived classes and classes within the same Assembly. (More...)

Describe the difference between a list and a library in sharepoint?

  
Lists are collections of metadata or columns, that can have attached documents. Libraries are collections of documents (Excel, InfoPath, Word, etc.) plus optional metadata. (More...)

Describe how to use crystal reports in java.

  
nstall and run crystl32.cox file in \WINNT\System32 folder and specify the sub directory as 'crystal' as the output directory.

- Create an object of CrystalReport class.
- Invoke aboutBox() method - for confirmation whether it is loaded properly
- Establish the connection by using setConnect() method.
- Specify the output file format by using setReportFileName() method.
- Execute the query by using setSqlQuery() method.
- Set the number of copies of the report and the printer collation.
- Set the destination file using setDestination() method.
- Specify the file type using setPrintFileType () method.
- Invoke the method pritReport()

The following is the code example:

public class CrystalReportExample
{
private static final String CONNECT_STRING = "DSN=YourDsn";
private static final String REPORT_FILE_NAME = "FileName.rpt";
private static final String SQL_QUERY = "select * from YourTable";
private static final String PRINT_FILE = "YourNewReport.doc";

public static void main(String args[]) throws Exception
{
try {
crystal.CrystalReport report = new crystal.CrystalReport();
report.aboutBox();
report.setConnect(CONNECT_STRING); // database connection
report.setReportFileName(REPORT_FILE_NAME); // name of the report file
report.setSQLQuery(SQL_QUERY); // query to get the data from the table
report.setPrinterCopies((short) 1); // number of copies of the report

// specifying the printer collating sequence

report.setPrinterCollation(crystal.PrinterCollationConstants.crptDefault);
report.setDestination(crystal.DestinationConstants.crptToFile); // destination of the report
report.setPrintFileName(PRINT_FILE); // writing the report into the file
report.setPrintFileType(crystal.PrintFileTypeConstants.crptWinWord); // the type of the report file
report.printReport(); // printing the report onto the destination with the specified requirements
}
finally
{
com.linar.jintegra.Cleaner.releaseAll(); // releasing all report resources.
}
}
}. (More...)

Describe the difference between inline and code behind - which is best in a loosely coupled solution

  
ASP.NET supports two modes of page development: Page logic code that is written inside runat="server"> blocks within an .aspx file and dynamically compiled the first time the page is requested on the server. Page logic code that is written within an external class that is compiled prior to deployment on a server and linked ""behind"" the .aspx file at run time. (More...)

Describe the advantages of writing a managed code application instead of unmanaged one. What's involved in certain piece of code being managed?

  
"Advantage includes automatic garbage collection,memory management,security,type checking,versioning
Managed code is compiled for the .NET run-time environment. It runs in the Common Language Runtime (CLR), which is the heart of the .NET Framework. The CLR provides services such as security,
memory management, and cross-language integration. Managed applications written to take advantage of the features of the CLR perform more efficiently and safely, and take better advantage of developers existing expertise in languages that support the .NET Framework.
Unmanaged code includes all code written before the .NET Framework was introduced-this includes code written to use COM, native Win32, and Visual Basic 6. Because it does not run inside the .NET environment, unmanaged code cannot make use of any .NET managed facilities."
(More...)

Can you describe IUKNOWN interface in short?

  
Every COM object supports at least one interface, the IUnknown interface.

All interfaces are classes derived from the base class IUnknown. Each interface supports methods access data and
perform operations transparently to the programmer.

For example, IUnknown supports three methods, AddRef, Release(), and QueryInterface().
Suppose that pinterf is a pointer to an IUnknown.

pinterf->AddRef() increments the reference count. pinterf->Release() decrements the reference
count, deleting the object when the reference count reaches zero.

pinterf->QueryInterface( IDesired,pDesired) checks to see if the current interface (IUnknown) supports another interface, IDesired,
creates an instance (via a call to CoCreateInstance()) of the object if the reference count is zero (the
object does not yet exist), and then calls pDesired->AddRef() to increment the reference count
(where pDesired is a pointer to IDesired) and returns the pointer to the caller. (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