• +91 9723535972
  • info@interviewmaterial.com

Silverlight Interview Questions and Answers

Related Subjects

Silverlight Interview Questions and Answers

Question - 41 : - What are the design files and the code-behind files in Silverlight?

Answer - 41 : - The user interface elements of Silverlight applications are defined in XAML files. The logic and functionality of Silverlight applications is implemented using managed NET code-behind files that share the same class with the XAML file.

Question - 42 : - Who is using Silverlight?

Answer - 42 : - Yahoo! Japan, NBC, Continental Airlines, NASA, Indian Premier League, and National Instruments are some of the organizations currently using Silverlight to enhance their businesses

Question - 43 : - What features are missing from Silverlight presentation markup that will be supported in WPF?

Answer - 43 : - Some high-end Windows specific features of WPF, such as real 3D, hardware-based video acceleration, and full document support, will not be supported in Silverlight. This is by design in order to serve Silverlight’s cross-browser, cross-platform reach scenario that demands a light weight plug-in. That being said, Silverlight will offer a uniform runtime that can render identical experiences across browsers on both Mac OS and Windows.

Question - 44 : - Will I need more memory, a faster processor, or a better Graphics Processing Unit (GPU)?

Answer - 44 : - Microsoft designed Silverlight with the ability to deliver high-fidelity experiences on the broadest set of system configurations. Some features, such as HD video, may benefit from the power contained in newer personal computers.

Question - 45 : - How does Silverlight make the Microsoft development system better?

Answer - 45 : - Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of media experiences and rich interactive applications (RIAs) for the Web. Examples include: • For ASP.NET-based Web applications, Silverlight provides a rich UI front-end that, with a consistent programming model, adds support for richer interactivity, media, and audio. • For Microsoft SharePoint–based content, Silverlight offers the ability to create rich Web Parts. • For Windows Live services, Silverlight offers the ability to consume services and APIs more effectively.

Question - 46 : - What is the relationship and difference between Silverlight and ASP.NET?

Answer - 46 : - Technically, Silverlight and ASP.NET are completely different. The major differences are listed below: • Silverlight runs completely on the client, while ASP.NET mainly runs on the server, but also has a few parts running on the client. • When an event fires, Silverlight handles the event on the client, but in ASP.NET, the browser will make an HTTP POST to the server, and after the server handles the request, it sends a new HTML page to the client. • A Silverlight application sends rendering commands to the Silverlight rendering engine by either writing XAML or code, and the Silverlight rendering engine will handle the rendering task. On the other hand, ASP.NET doesn’t have a rendering engine. It generates an HTML file on the server, sends it to the client, and allows the browser to parse the HTML file and render the content. • Silverlight can’t work with a database directly; instead, it consumes data from Web Services, while ASP.NET has strong support for working with databases directly. The most important thing to note is what runs on the client and what runs on the server, since this will affect almost every part of your system. Silverlight runs on the client, and ASP.NET runs on the server. They can work together and are compatible with each other, but this requires some time and effort.

Question - 47 : - When to use Silverlight, ASP.NET, or both?

Answer - 47 : - This depends on different scenarios. Below are some common approaches: • Pure Silverlight One approach is to completely remove ASP.NET. This solution works best if you’re working on a new development. You only need to work on Silverlight, without any worry about integration problems. If you need to communicate with the server, you write Web Services, such as WCF. It will also help you when you need to port part or whole of your system to another hosting or even another platform, since the client and the server are completely separate. • Major ASP.NET, plus a Silverlight island This approach is generally used when the Silverlight content and the ASP.NET content have little relationship. For example, an ASP.NET blog engine with a Silverlight media player in a blog post. This approach is very easy to implement, and allows you to reach the broadest audience. For example, if a user hasn’t installed Silverlight, he can still read the blog posts, but he can’t watch the videos. • Use ASP.NET AJAX instead of Silverlight ASP.NET AJAX is designed to work with ASP.NET. It is mainly an extension to ASP.NET. While AJAX can’t provide you the advanced user experience that Silverlight can, for many scenarios, it should be sufficient. This approach also helps if you have strong ASP.NET experience, but are still quite new to Silverlight. Within this approach, there are two branches. One is to mix the client and server code by using the UpdatePanel, AJAX Control Toolkit, and etc. The other method is to take the pure AJAX approach, where you write HTML and JavaScript instead of using server controls, and call Web Services to communicate with the server. The former branch is easier to implement, especially if you have strong ASP.NET experience but lack JavaScript knowledge. The latter branch proves to be better in an architecture when you want to port an AJAX application to other technologies such as Silverlight, especially since you only need to rewrite the client side code, and can keep the Web Services as they are. The programming model for the latter branch is similar to Silverlight. Therefore, this approach is rarely taken if you’re experienced in Silverlight. • Mix Silverlight with ASP.NET More often, you may want to port an existing ASP.NET application to Silverlight, but you don’t want to completely rewrite the entire application. This is the most difficult approach since you’re mixing client side and server side technologies. Before going with this approach, please consider if the above approaches can solve your problem.

Question - 48 : - What are the new features of Silverlight 4?

Answer - 48 : - • Support for Google's Chrome browser. • Web cam and microphone support. • Printing support. • Full keyboard access while running in full-screen mode. • Programmatic access to a user's local document folder. • Improved mouse support, including right button support and mouse wheel support. • Elevated trust and support for local Component Object Model (COM) objects. • New notification support to display messages to end users. • New and enhanced controls such as a RichTextBox and an enhanced DataGrid control. • New support for implicit theming of controls. • New hosted browser support for rendering HTML inside Silverlight. • WCF data layer enhancements. • Localization enhancements with bi-directional text. • Support for Managed Extensibility Framework. • Enhanced data binding support. • Enhanced animation effects. • Clipboard and drag and drop support. • Deep Zoom performance enhancements. • WCF Rich Internet Application (RIA) Services. • Content protection for H.264, and support for playing offline DRM protected media.

Question - 49 : - List the different components used in Silverlight

Answer - 49 : -

The four different components used in Silverlight include the following:

  • Silverlight Plug – in
  • Silverlight Host
  • Silverlight application file
  • Interface language

Question - 50 : - What is the methodology adopted to change the startup page of any particular Silverlight application?

Answer - 50 : -

In order to change the startup page of any particular Silverlight application, firstly open the App.xaml.cs file. Subsequently in the Application_Startup handler, set the RootVisual property to the particular Silverlight class. Consider the following example:

In order to find the file name: MainPage.xaml, there must exist a class known as MainPage with MainPage.xaml.cs

private void Application_Startup (object sender, StartupEventArgs)
 
{
 
this.RootVisual = new MainPage();
 
}


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners