Silverlight Interview Questions and Answers
Question - 51 : - What do you understand by the term Silverlight Run Time?
Answer - 51 : -
Silverlight Run Time is a plugin utilized for different browsers in order to support various Silverlight enabled applications. In case the Silverlight Run Time is not installed then the browsers cannot run Silverlight elements from the browser. One can set up the Silverlight tag in such a manner that the browser will automatically notify the user to download and install the plugin required by Silverlight for the application to be launched and run smoothly by the browser.
Question - 52 : - Describe the term Silverlight plug-in.
Answer - 52 : -
The Silverlight plug-in is an extremely lightweight segment that is fundamental for clients to get to Silverlight applications. The plugin allows easy download and installation within only a couple of minutes and does not occupy much hard drive room. The Silverlight plug-in is chiefly in charge of getting the Silverlight object in the Web page, downloading and getting it to the XAP bundle, setting up the program condition, and starting the execution of the application. At a point when a Web page containing a Silverlight application is shown, the client ought to be given a connection to download the module from Microsoft if the plug - in has not already been installed.
Question - 53 : - List the steps involved in consuming the WCF services in Silverlight
Answer - 53 : -
The simple steps involved in consuming WCF in Silverlight include:
- Creation of WCF service
- Enabling the cross-domain required for WCF service
- Addition of WCF service reference
- Calling the service
Question - 54 : - Describe the different XAML files generated when a new project in Silverlight Visual Studio is created
Answer - 54 : -
The different XAML files generated when a new project in Silverlight Visual Studio is created include:
- App.xaml: A file that is utilized in order to declare shared resources such as brushes, different style objects, etc. and to handle various global application events at different levels. The following events are created when using the App.xaml.cs file:
Application_Startup
Application_Exit
Application_UnhandledException
ReportErrorToDOM
- MainPage.xaml / Page.xaml: This file is used as a default page by the Silverlight application especially when a Silverlight application is running.
Question - 55 : - Describe the different layout controls available with the use of Silverlight
Answer - 55 : -
The different layout controls available with the use of Silverlight are the following:
- Canvas: It allows the position of elements in x and y space
- Grid: It allows the position of elements in rows and columns
- StackPane1: It allows the position of elements close to one another in vertical as well as horizontal stacks.
Question - 56 : - List some of the benefits of using Silverlight
Answer - 56 : -
Some of the benefits of using Silverlight includes:
- It allows easy connection to data, services and servers
- It has cost-effective delivery facilities with high-quality media services
- It has a highly flexible programming model with a multitude of collaboration tools
- It provides a very user-friendly experience
Question - 57 : - Give a brief description of the .XAP file
Answer - 57 : -
The .XAP file is a Silverlight developed application, which is formulated when the Silverlight project is initially built. It is compressed as an output file for Silverlight applications.
Question - 58 : - Describe Moonlight and list the goals of using Moonlight
Answer - 58 : -
Moonlight is a technical collaboration between Microsoft and Novell. It is an open source implementation of Silverlight that is principally used for Linux, Unix/11 and other operating systems with similar baselines. It provides users with the access of Microsoft’s greatest test suits that are made available for Silverlight along the with the distribution benefits of various Media Packs by Linux users. The goals of using Moonlight include the following:
- Moonlight helps in running Silverlight applications for systems with Linux operating system
- In order to provide Linux SDK for building Silverlight applications, Moonlight is preferred
- For reusing Silverlight engines for desktop applications, Moonlight is used
Question - 59 : - Describe Silverlight SDK
Answer - 59 : -
Silverlight SDK is a set of instruments, documentation, tests, and layouts for web designers. It is mainly used to empower them to effectively create Silverlight enabled applications. The SDK is not generally obligatory to create Silverlight applications. However, the SDK will make an improvement in a very effective and efficient manner.
Question - 60 : - What is the usage of ClientBin folder?
Answer - 60 : -
The ClientBin folder is used in ASP.NET application to use the Silverlight functionalities. The ClientBin folder contains the .xap file that contains the reference of the Silverlight libraries which is later used in ASP.NET applications.