SilverLight interview questions fresher /SilverLight Interview Questions and Answers for Freshers & Experienced

What features are missing from Silverlight presentation markup that will be supported in WPF?

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.

Posted Date:- 2021-09-17 11:48:37

Who is using Silverlight?

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

Posted Date:- 2021-09-17 11:45:54

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

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.

Posted Date:- 2021-09-17 11:44:32

What is .NET RIA Services?

Microsoft .NET RIA Services helps to simplify the n-tier application pattern by combining the ASP.NET and Silverlight platforms. RIA Services provides a pattern using which you can write application logic that can run on the mid-tier and controls access to data for queries, changes, and custom operations. It also provides support for data validation, authentication, and roles by integrating with Silverlight components on the client and ASP.NET on the middle tier.

Posted Date:- 2021-09-17 11:43:09

What is meant by RIA?

RIA stands for Rich Internet Applications, which are Web applications with rich user interfaces including media elements such as audio, video etc. You can think of them as being similar to powerful and rich desktop applications, except that RIA applications are Web based.

Posted Date:- 2021-09-17 11:41:19

What are the other RIA technologies besides Silverlight?

Adobe Flex, Java FX, Adobe Flash are some of the other RIA technologies besides Silverlight.

Posted Date:- 2021-09-17 11:40:26

Do I need to have the .NET Framework installed in order to use Silverlight?

The answer to this is no - a cross platform version of the .NET Framework is included in the 6 MB Silverlight 4 download, which means you do not need to have anything extra installed on the client in order to access Silverlight applications in the browser. The Silverlight version of the .NET framework includes the same CLR engine (same GC, type-system, JIT engine) that ships with the full .NET Framework, and a subset of the .NET Framework namespace libraries. You can see the full list of all classes/namespaces that are included by opening up the Object Browser when you create a new Silverlight application using Visual Studio.

Posted Date:- 2021-09-17 11:39:42

What is the long-term goal or vision for Silverlight?

• Microsoft Silverlight is a cross-browser, cross-platform, and cross-device plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web.

• Silverlight offers a flexible programming model that supports AJAX, VB, C#, IronPython, and IronRuby, and integrates with existing Web applications.

• By using Expression Studio and Visual Studio, designers and developers can collaborate more effectively using the skills they have today to light up the Web of tomorrow.

• By leveraging Silverlight's support for .NET, High Definition video, cost-effective advanced streaming, unparalleled high-resolution interactivity with Deep Zoom technology, and controls, businesses can reach out to new markets across the Web, desktop, and devices.

Posted Date:- 2021-09-17 11:38:51

Are XAML files compiled or built at runtime?

XAML files are usually compiled rather than parsed at runtime. But it also supports parsing during runtime. When we build a XAML based project, you will see it creates a g.cs extension in the obiDebug folder. Therefore, for every XAML file, you will find a g.cs file. For instance, a MainPage.XAML will have a MainPage.g.cs file in the obiDebug folder. In short, at run time, you actually do not see the XAML file. But if you want to do runtime parsing of the XAML file, it also allows that to be done.

Posted Date:- 2021-09-17 11:37:59

What are the different Layout controls available in Silverlight?

There are three different types of Layout controls provided by Silverlight:

• Canvas - Position child elements absolutely in x, y space.

• StackPanel - Position child elements relative to one another in horizontal or vertical stacks.

• Grid - Position child elements in rows and columns. You have to add a layout panel to every XAML page you create. All other UI elements must be added inside one of the layout panels. Each page can have exactly one layout panel control.

Posted Date:- 2021-09-17 11:37:07

What is the difference between Silverlight and Flash?

Adobe Flash is the most popular competitor to Silverlight, supporting browser plug-ins and enabling the execution of rich content for the Web. Flash is not a new technology, and already has had a long life span as compared to Silverlight. But it does not have a huge community as expected; it may be because of the limited development tools which are not known to most developers. Flash uses ActionScript as the programming language and Flex as the programming environment, and most developers are far from these technologies. For ASP.NET developers, to extend their websites using Flash content is not so simple. They need to learn a development environment like ActionScript and Flex. Apart from that, there is no way to generate Flash content using server-side .NET code, which means it’s difficult to integrate ASP.NET content and Flash content. Silverlight aims to give .NET developers a better option for creating rich web content. Silverlight provides a browser plug-in with many similar features to Flash, but one that’s designed from the ground up for .NET. Silverlight natively supports the C# language, and uses a range of .NET concepts. As a result, developers can write client-side code for Silverlight in the same language they use for server-side code (such as C# and VB), and use many of the same abstractions (including streams, controls, collections, generics, and LINQ).

Posted Date:- 2021-09-17 11:36:24

What are Deep Zoom and Deep Zoom Composer?

Deep Zoom provides the ability to interactively view high-resolution images in Silverlight. You can zoom in and out of images rapidly without affecting the performance of your application. Deep Zoom provides smooth in-place zooming and panning. DeepZoom Composer allows you to create high resolution image compositions which are built for smooth zooming and panning. DeepZoom Composer is absolutely free, and is simple to use - just loads in all your high resolution images and makes your composition on screen. Deep Zoom Composer is a tool that allows preparing of images for use with the Deep Zoom feature in Silverlight 3.

Posted Date:- 2021-09-17 11:35:50

Can I consume WCF and ASP.NET Web Services in Silverlight?

Yes, you can.

Posted Date:- 2021-09-17 11:34:48

Which language is Silverlight developed in?

It was developed using a combination of C# and C++.

Posted Date:- 2021-09-17 11:34:15

What is MainPage.xaml?

When you create a Silverlight project using Visual Studio, it creates a default XAML file called "MainPage.xaml". This is just a dummy start page created by Visual Studio, and it does not contain any visible UI elements. The default contents of the MainPage.xaml file looks like this: Collapse

Posted Date:- 2021-09-17 11:33:31

What are the main features and benefits of Silverlight?

• Compelling cross-platform user experiences.

• Flexible programming model with collaboration tools.

• High-quality media, low-cost delivery.

• Connected to data, servers, and services.

Posted Date:- 2021-09-17 11:32:43

What is the Silverlight official name?

Silverlight was formerly code-named "WPF/E".

Posted Date:- 2021-09-17 11:31:53

What is app.xaml?

App.xaml is a file used by Silverlight applications to declare shared resources like brushes, various style objects, templates etc. Also, the code-behind file of app.xaml.cs is used to handle global application level events like Application_Startup, Application_Exit, and Application_UnhandledException (similar to the Global.asax file for ASP.NET applications). When Visual Studio creates the app.xaml file automatically, it creates a few event handlers with some default code. You can change the code appropriately. Collapse private void Application_Startup(object sender, StartupEventArgs e) { } private void Application_Exit(object sender, EventArgs e) { } private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { } For ASP.NET developers, the above code will look familiar. This is similar to the application level event handlers in Global.asax.

Posted Date:- 2021-09-17 11:30:45

What files are contained within the .xap file?

The .xap file contains an application manifest (AppManifest.xaml) file and all the necessary DLLs that are required by the application. The first DLL contained is the compiled version of your application and has the same name of your application. In my test, I created an application named "SilverlightApplication1", so the DLL is named "SilverlightApplication1.dll". The rest of the DLLs are the dependencies the application requires.

Posted Date:- 2021-09-17 11:30:03

What is the AppManifest.xml file?

First, let’s look at an example AppManifest.xaml file: Collapse The first element in AppManifest.xaml is a Deployment node. This node defines the application, and contains the child AssemblyPart nodes. As you can see the AssemblyPart nodes define what assemblies (DLLs) are contained within the .xap file, and give each of them a name. Now, if you look back up to the top, you'll see the Deployment node has the EntryPointAssembly and EntryPointType attributes. The EntryPointAssembly attribute defines which assembly defined below (as a child AssemblyPart node) is the main assembly (DLL) for the application. And, the EntryPointType attribute specifies the class contained within the assembly (DLL), defined in the EntryPointAssembly attribute, is the main class that will be instantiated to start the application. The Deployment node also has a RuntimeVersion attribute that defines the version of Silverlight the application is built for.

Posted Date:- 2021-09-17 11:29:22

What is XAML?

XAML stands for eXtended Application Markup Language. XAML contains XML that is used to declaratively specify the user interface for Silverlight or WPF applications. For example, if you need to display a rectangle, this is the XAML you need to use.

XAML stands for eXtensible Application Markup Language, and is a declarative markup language that follows the XML rule and is used for developing User Interfaces in WPF and Silverlight technology. XAML files are XML files that generally have the .xaml extension, and separates the UI definition from the run-time logic by using code-behind files, joined to the markup through partial class definitions. XAML has a set of rules that map object elements into classes or structures, attributes into properties or events, and XML namespaces to CLR namespaces. XAML elements map to Microsoft .NET types as defined in referenced assemblies, and the attributes map to members of those types.

Posted Date:- 2021-09-17 11:28:50

How to change the default page of a Silverlight application?

To change the default page of a Silverlight application, you need to set the RootVisual property inside the Application_Startup event of the App.xaml file. Collapse private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new MainPage(); }

Posted Date:- 2021-09-17 11:27:00

What is the use of the ClientBin folder?

The ClientBin folder is used to place the .xap file of a Silverlight application. You can keep it anywhere in your web application, but this is the default location used by Silverlight.

Posted Date:- 2021-09-17 11:24:54

What is a Silverlight.js file?

Silverlight.js is a helper file which enables websites to create advanced Silverlight installation and instantiation experiences. You can call the createObject and createObjectEx functions defined in this file to embed the Silverlight plug-in in a web page.

Posted Date:- 2021-09-17 11:24:21

Can we add a reference to a Class Library project in a Silverlight application project?

No, you can't add a reference to a Class Library project to a Silverlight application project. You can only add the reference of another Silverlight application project inside a Silverlight application project. However, you can add a reference to a Web Service or WCF Service.

Posted Date:- 2021-09-17 11:23:36

How do I use a .xap file?

A .xap file is used to contain and transfer the assemblies and resources of a managed code application. This managed code application must be run within the Silverlight 2 browser plug-in.

Posted Date:- 2021-09-17 11:22:30

How does XAP work?

Once you have created the .xap file , the Silverlight 2 plug-in downloads the file and runs it in a separate work space.

Posted Date:- 2021-09-17 11:20:40

What is a .xap file?

A .xap file is a Silverlight-based application package (.xap) that is generated when the Silverlight project is built. A .xap file is the compressed output file for a Silverlight application. The .xap file includes AppManifest.xaml, the compiled output assembly of the Silverlight project (.dll), and the resource files referred to by the Silverlight application:

• Web pages like .aspx files and .html files use Silverlight components by loading .xap files using the tag in HTML or by using the tag in ASP.NET pages.

• ".xap" files (pronounced "zap") use the standard Zip compression algorithm to minimize client download size. Rename this file to SilverlightTest.zip and open it using any decompression tool. You can see that this is just like any other zip file, and it includes the project's output DLL and another file called "AppManifest.xaml".

Posted Date:- 2021-09-17 11:19:54

What are the Silverlight versions available so far?

• Silverlight 1.0: Silverlight 1.0, which was developed under the codename Windows Presentation Foundation/Everywhere (WPF/E), consists of the core presentation framework which is responsible for the user interface (UI), interactivity, and user input, basic UI controls, graphics and animation, media playback, Digital Restrictions Management (DRM), and DOM integration

• Silverlight 2: Silverlight 2 (previously referred to as version 1.1) includes a version of the .NET Framework, implementing the same full Common Language Runtime (CLR) version as .NET Framework 3.0. The XAML markup as well as the code is compiled into .NET assemblies which are then compressed using Zip and stored in a .xap file.

• Silverlight 3: Silverlight version 3 was released in July 9, 2009, which is an extension to Silverlight 2.0, and mainly provides improvements in graphics capabilities, media management, application development areas (additional controls, enhanced binding support, and out-of-browser functionality), and integration in the designers' Expression Blend 3 tools.

• Silverlight 4: Silverlight version 4 was released on April 15, 2010 (along with Silverlight 4 tools for developers).

Posted Date:- 2021-09-17 11:19:26

Which tool to use - Expression Studio or Visual Studio?

If your Silverlight application includes just graphics and visual elements, then you can use Expression Studio. However, if you are a programmer and if your Silverlight application includes programming logic, then you might want to choose Visual Studio.

Posted Date:- 2021-09-17 11:18:34

What is Silverlight SDK?

Silverlight SDK is a set of tools, documentation, samples, and templates for web developers to enable them to easily develop Silverlight enabled applications. The SDK is not really mandatory to develop Silverlight applications; however, the SDK will make development much easier.

Posted Date:- 2021-09-17 11:17:59

What is Silverlight Runtime?

Silverlight Runtime is a browser plug-in to support Silverlight enabled applications. If the Silverlight runtime is not installed, browsers will not be able to run Silverlight elements in the browser. You can set up your Silverlight tags in such a way that your browser will automatically prompt the user to download and install the Silverlight plug-in when your application is launched in the browser.

Posted Date:- 2021-09-17 11:17:31

What is the Silverlight plug-in?

• The Silverlight plug-in is a very lightweight component that is necessary for users to access Silverlight applications. The plug-in download and install takes only a few moments, and do not take up much hard drive space.

• The Silverlight plug-in is responsible for accessing the Silverlight object in the Web page, downloading and accessing the XAP package, setting up the program environment, and beginning execution of the application.

• When a Web page containing a Silverlight application is displayed, the user should be given a link to download the plug-in from Microsoft if the plug-in is not already installed.

Posted Date:- 2021-09-17 11:16:56

What is the difference between Silverlight 1.0 and 2?

• Silverlight 1 is purely AJAX and JavaScript based. All the code has to be written in JavaScript and XAML.

• Silverlight 2 supports managed code. When the Silverlight 2 runtime is installed, it installs a limited version of the .NET runtime on the client machine. This allows .NET programmers to write managed code to be executed on the client PC, and provides a better user experience to users. Of course, there is security restrictions built in to it so that the code has limited access to the client computer.

• The biggest change is the implementation of the .NET Framework. If you are familiar with Silverlight 1.0, then you will be used to coding the application functionality in JavaScript. You can still implement functionality using JavaScript; however, you can now also implement functionality using C#, Visual Basic, Python, Ruby, and managed JavaScript.

• Another major change is the introduction of the XAP package. In Silverlight 1.0, the XAML code was referenced directly by the Silverlight object embedded in the browser. In Silverlight 2, however, the embedded object references an XAP package that contains the XAP file, assemblies, and resources necessary to run the Silverlight application.

Posted Date:- 2021-09-17 11:16:22

Is Silverlight free?

Yes, Microsoft has made the Silverlight browser plug-in freely available for all supported platforms and browsers.

Posted Date:- 2021-09-17 11:15:37

What are the goals of Moonlight?

• To run Silverlight applications on Linux.

• To provide a Linux SDK to build Silverlight applications.

• To reuse the Silverlight engine built for desktop applications.

Posted Date:- 2021-09-17 11:15:13

What is Moonlight?

Moonlight is an Open Source implementation of Silverlight, primarily for Linux and other Unix/X11 based Operating Systems. In September of 2007, Microsoft and Novell announced a technical collaboration that includes access to Microsoft's test suites for Silverlight and the distribution of a Media Pack for Linux users that will contain licensed media codecs for video and audio.

Moonlight 2 was released December 17, 2009

Posted Date:- 2021-09-17 11:14:31

What are the system requirements for Silverlight?

The system requirements for Microsoft Silverlight and associated technologies are listed below.

Windows

• Operating System: Windows 7, Windows Vista, Windows XP Service Pack 2

• Intel® Pentium® III 450MHz or faster processor (or equivalent)

• 128MB of RAM

Mac OS

• Operating System: Apple Mac OS X 10.4.8 or above

• Intel Core™ Duo 1.83GHz or faster processor

• 128MB of RAM

Linux

• Moonlight

Posted Date:- 2021-09-17 11:13:44

Which platforms and browsers will Silverlight support?

Silverlight will support all major browsers on both Mac OS X and on Windows. Particular care is being taken to account for differences in platform and browser capabilities to ensure a consistent experience including experiences on FireFox, Safari, and Internet Explorer.

Posted Date:- 2021-09-17 11:12:21

What is the difference between WPF and Silverlight?

Silverlight uses a particular implementation of a XAML parser, with that parser being part of the Silverlight core install. In some cases, the parsing behavior differs from the parsing behavior in Windows Presentation Foundation (WPF), which also has a particular implementation.


Posted Date:- 2021-09-17 11:11:59

What is XAML?

Extensible Application Markup Language (XAML, pronounced zammel) is a declarative XML-based language created by Microsoft which is used to initialize structured values and objects.

Posted Date:- 2021-09-17 11:11:36

Can you name built-in layout panels you have been using with Silverlight?

You are looking for Canvas, StackPanel and Grid

Posted Date:- 2021-09-17 11:11:11

What is Storyboard?

Storyboard is a Silverlight class with controls animations with a timeline, and provides object and property targeting information for its child animations

Posted Date:- 2021-09-17 11:10:48

Will Silverlight support HD quality?

Yes, Silverlight supports 720p, HD quality with considerable performance benefits over other solutions. Performance is dependent upon the central processing unit (CPU) capabilities of your computer and configurations. Generally, in testing, a 3-gigahertz (GHz) CPU and/or dual-core support greatly benefit the HD playback experience.

Posted Date:- 2021-09-17 11:10:33

What audio or video formats are supported in Silverlight?

Silverlight supports Windows Media Audio and Video (WMA, WMV7-9) and VC-1, as well as MP3 audio. Additional formats may be available by the final release based on customer feedback.

Posted Date:- 2021-09-17 11:10:08

Which platforms does Silverlight support?

• Mac OS

• Windows Vista

• Windows XP SP2

• Windows 2000

• Windows Server 2003

• Linux (Moonlight)

Posted Date:- 2021-09-17 11:09:34

. What audio or video formats are supported in Silverlight?

Silverlight supports Windows Media Audio and Video (WMA, WMV7-9) and VC-1, as well as MP3 audio. Additional formats may be available by the final release based on customer feedback.

Posted Date:- 2021-09-17 11:07:35

Will Silverlight support all the codecs Windows Media Player supports?

Since Silverlight is a lightweight cross-platform technology, it only carries the most common codecs that are needed for Web playback. However, we are gathering information from customers about the needed codecs and can update Silverlight when necessary.

Posted Date:- 2021-09-17 11:06:42

What are the different ways to display text with Silverlight?

Silverlight supports displaying static preformatted text that is comprised out of glyph elements and also dynamic text that uses TextBlock. With glyphs, one needs to position the characters individually while TextBlock supports simple layout.

Posted Date:- 2021-09-17 11:06:15

What kinds of fonts are supported with Silverlight?

Beyond standard and western fonts, Silverlight also supports East Asian characters, double-byte characters, and can work with any East Asian font or Middle Eastern font by using the glyphs element and a supporting TrueType font file that supports the requested glyph.

Posted Date:- 2021-09-17 11:02:11

Why use Silverlight?

Support for the .NET Framework – if you are already a .NET developer, it is easy to start programming on Silverlight.

• Support for managed code – you can write programs in your favorite language which .NET CLR supports like C#, VB.NET, dynamic languages (IronPython, IronRuby).

• Better development tools -Visual Studio 2010, Expression Blend.

• Large community- More learning resources available compared to Flash.

• Integration with Enterprise based technologies like WPF, LINQ etc…

• Silverlight integrates the XAML declarative language with the .NET framework.

• It is a cross-browser, cross-platform technology which provides a consistent user experience everywhere it runs.

• The Silverlight plug-in installs in seconds, and leaves a very small footprint.

• After you install the plug-in, users no longer need to install anything on their workstations to run Silverlight applications. The applications are available to them from whatever browser they are accessing.

• It runs a client-side application that can read data and update the UI without interrupting the user by refreshing the whole page.

• It can run asynchronous communications with the server, allowing the UI to continue to function while waiting for the server response.

• It delivers rich video, audio, and graphics.

Posted Date:- 2021-09-17 11:01:05

What is Microsoft Silverlight?

Microsoft Silverlight is an open-source development tool that is used for creating and deploying interactive user experiences, internet applications and media experiences for web and mobile application.

Posted Date:- 2021-09-17 11:00:03

Search
R4R Team
R4R provides SilverLight Freshers questions and answers (SilverLight Interview Questions and Answers) .The questions on R4R.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,SilverLight interview questions fresher ,SilverLight Freshers & Experienced Interview Questions and Answers,SilverLight Objetive choice questions and answers,SilverLight Multiple choice questions and answers,SilverLight objective, SilverLight questions , SilverLight answers,SilverLight MCQs questions and answers R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for SilverLight fresher interview questions ,SilverLight Experienced interview questions,SilverLight fresher interview questions and answers ,SilverLight Experienced interview questions and answers,tricky SilverLight queries for interview pdf,complex SilverLight for practice with answers,SilverLight for practice with answers You can search job and get offer latters by studing r4r.in .learn in easy ways .