Wednesday 2 November 2011

Silverlight Interview Questions And Answers


Here, some common Silverlight interview questions which asked by the interviewer.

What is Xaml in Silverlight?

Xaml[Extensible Application Markup Language], it is pronounced as Zammel. Xaml is a Xml based language, it contains elements that can be nested in any arrangement.

How style works with Silverlight?

Style is collection of property value that apply to an element. First define the style in App.xaml.
<Application.Resource>
        <Style x:key="MyButton" TargetType="Button">
                 <Setter Property="FontFamily" Value="Verdana" />
                 <Setter Property="FontSize" Value="36" />
        </Style>
</Application.Resource>

Apply style to Button.
<Button Style="{StaticResource MyButton}" Content="My Button" ></Button>

What are the programming languages in which you can implement behavior of Silverlight application?

C# or Visual Basic programming language can be used.
 
Explain about Silverlight plug-in?

Silverlight plug-in is easy to download and takes few second to install on client's system. It is necessary to access Silverlight object that is embedded in web page. User has to download this plug-in for only one time.

What is ClientBin folder in Silverlight application?

ClientBin folder is folder in Silverlight application which store .xap file.

What is .xap file?

A .xap file is a created when Silverlight project is built. It includes AppManifest.xaml, assembly of Silverlight project and resource files referred by Silverlight application. 

What files are contained by .xap file?

A .xap file contains application manifest [AppManifest.xaml] and all the DLLs required by the application.
 
What is Silverlight SDK?

Silverlight SDK contains samples, documentations, libraries and tools for developing Silverlight application.
Silverlight SDK is not necessary for creating Silverlight application but its makes development easy.

What is official name of Silverlight?

It is WPF/E.

Silverlight is developed in which languages?

Silverlight is developed in C# and C++. 

Expression Studio orVisual Studio, which one better to use for developing Silverlight application?

Expression Studio and Visual Studio both are used for creating Silverlight application.If Silverlight application has graphics and visual elements then its good to work with Expression Studio. If Silverlight application has programming coding then its good to use Visual Studio.

For Windows,what are system requirement for Silverlight?

Operating System - Windows 7, Windows Vista, Windows XP SP2.
Processor - Intel Platinum III
RAM - 128MB

Is it possible to consume WCF and Web Services in Silverlight application?

Yes, it is possible.


What are those platforms which supports Silverlight?

1. Windows XP Service Pack 2
2. Windows 2000
3. Windows Vista
4. Windows Server 2003
5. Mac OS
6. Linux Moonlight

What are those browsers which supports Silverlight?


Internet Explorer 6,7,8
Mozilla Firefox 2,3
Safari 3,4
Google Chrome



What are deep zoom and deep zoom  composer?

Deep zoom composer is tool in Silverlight which make image with deep zoom feature. Actually Deep zoom is feature in Silverlight which zoom in and out of images rapidly without affecting the performance of application.
Its Deep zoom composer which creates high resolution composition for image for smooth zooming.

What are differences between Silverlight and WPF?

1. Silverlight is used for developing RIA for web application whereas WPF is using for windows applications.
2. Silverlight supports cross-browser, cross-platform whereas WPF supports windos only.
3. Silverlight is add-on machnism for most of the browsers but it is necessary to run Silverlight plug-in  once on client's system. But with WPF, it is necessary to install WPF client application on client's system.
4. Silverlight is small subset of .NET framework to optimized its size. WPF has full access to main .NET framework and its assemblies.


What are differences between Silverlight and Asp.Net? 
1. Silverlight runs on client's system whereas Asp.Net runs on the server.
2. When an event fires, Silverlight handles the event on the client whereas in Asp.Net, the browser will make an Http Post to the server.
3. Silverlight can't work directly with database, it consumes data from web service whereas Asp.Net supports working with database.

How Silverlight 4 is different from Silverlight 3?

There are a lot of new features in Silverlight 4 that are not present in Silverlight 3 :-

  •  Print Support
  •  WebCam / Microphone Support
  •  Mouse right click event handling
  •  RichTextArea Control
  •  Multicast network support
  •  Silverlight hosting in HTML 4
  •  Google Chrome support
        
         
         
        
         
      
     
      

3 comments:

  1. thank you very much for sharing the knowledge, this is very good thread

    thanks again,
    Bhuma

    ReplyDelete
  2. Thank you, sir for the post. nice post

    ReplyDelete
  3. its post very use full,thank u,keep rock on silverlight

    ReplyDelete