Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

Explain How To Apply Style Elements In A Silverlight Project?

Answer»

Application resources utilize the style elements for SUPPORTING the forms. The App.xaml file could be used to CONTAIN an application resource XML construct. Each style’s target TYPE is set to the control that NEEDS the style.

Application resources utilize the style elements for supporting the forms. The App.xaml file could be used to contain an application resource XML construct. Each style’s target type is set to the control that needs the style.

2.

Can You Provide A List Of Layout Management Panels And When You Will Use Them?

Answer»

The following are the LIST of LAYOUT Management Panels: 1. CANVAS Panel: Simple layouts use canvas panel and when there is no requirement of resizing the panel. The controls will overlap each other at the time of resizing the panel.

The following are the list of Layout Management Panels: 1. Canvas Panel: Simple layouts use canvas panel and when there is no requirement of resizing the panel. The controls will overlap each other at the time of resizing the panel.

3.

Explain How To Set Silverlight Contents Width As 100%.

Answer»

Usually the UserConrol will be SPREAD full screen. The CONTENTS width and height can also be set by USING width and height attributes.

Usually the UserConrol will be spread full screen. The contents width and height can also be set by using width and height attributes.

4.

What Are The Programming Language That Can Be Used To Write The Backend Of The Silverlight Application?

Answer»

Visual Basic or Visual C# can be USED for AUTHORING code for the backend of the SILVERLIGHT APPLICATION.

Visual Basic or Visual C# can be used for authoring code for the backend of the Silverlight application.

5.

How Many Xaml Files Are Created When You Create A New Project In Silverlight Through Visual Studio And What Are The Uses Of Those Files?

Answer»

There are two XAML FILES are CREATED when a new project in Silverlight is created through VISUAL STUDIO.

There are two xaml files are created when a new project in Silverlight is created through Visual Studio.

6.

Explain With Example How To Change The Default Page Of The Silverlight Application.

Answer»

The RootVisual property of Application_Startup event in App.xaml file needs to be set to CHANGE the default SILVERLIGHT APPLICATION page. The following code snippet SETS the property.

The RootVisual property of Application_Startup event in App.xaml file needs to be set to change the default Silverlight application page. The following code snippet sets the property.

7.

What Is The Parent Xaml Tag Of Silverlight Page? Explain Its Purposes.

Answer»

The’UserConrol’ is the PARENT xaml tag of a Silverlight page. All other tags are authored under USERCONTROL tag. DEVELOPERS are given a FACILITY to implement NEW custom controls and create re-usable user controls.

The’UserConrol’ is the parent xaml tag of a Silverlight page. All other tags are authored under UserControl tag. Developers are given a facility to implement new custom controls and create re-usable user controls.

8.

What Is Clipping In Silverlight?

Answer»

Clipping is a modification to a given IMAGE / object BASED on the geometry type–like a line, rectangle, ellipse or even a GROUP geometry OBJECTS.

Clipping is a modification to a given image / object based on the geometry type–like a line, rectangle, ellipse or even a group geometry objects.

9.

Explain The Use Of Clientbin Folder In Silverlight.

Answer»

The ClientBin folder is USED for placing .XAP FILE of a Silverlight APPLICATION. This folder can be kept anywhere in the web application.

The ClientBin folder is used for placing .xap file of a Silverlight application. This folder can be kept anywhere in the web application.

10.

How Does Xap Work?

Answer»

The .xap file is used for transferring and containing the assemblies and resources of an application with managed CODE. This code MUST be written WITHIN the Silverlight browser plugin.

Once the .xap file is CREATED, the Silverlight 2 plug-in will download the file and executes in a separate work SPACE

The .xap file is used for transferring and containing the assemblies and resources of an application with managed code. This code must be written within the Silverlight browser plugin.

Once the .xap file is created, the Silverlight 2 plug-in will download the file and executes in a separate work space

11.

Why Is Xap Important?

Answer»

USING XAP, Silverlight APPLICATIONS which are heavily client BASED can be created by MANAGING code. The managed code, benefits of using the tools such as Visual Studio 2008 with Silverlight Tools BETA version 2 , are utilized by using XAP.

Using XAP, Silverlight applications which are heavily client based can be created by managing code. The managed code, benefits of using the tools such as Visual Studio 2008 with Silverlight Tools Beta version 2 , are utilized by using XAP.

12.

Explain The Purpose Of Storyboard.targetproperty.

Answer»

USING STORYBOARD.TargetProperty, the properties of an object can be assigned with values. The objects are REFERRED by Storyboard. TargetName attribute. The following SNIPPET illustrates the change of width and COLOR of a rectangle object.

Using Storyboard.TargetProperty, the properties of an object can be assigned with values. The objects are referred by Storyboard. TargetName attribute. The following snippet illustrates the change of width and color of a rectangle object.

13.

What Is The Role Of Silverlight Plugin In The Silverlight Application Life-cycle?

Answer»

The SILVERLIGHT plug-in loads the CORE services of Silverlight FOLLOWED by Silverlight COMMON Language Runtime. CLR creates domains for applications.

The Silverlight plug-in loads the core services of Silverlight followed by Silverlight Common Language Runtime. CLR creates domains for applications.

14.

Explain Silverlight Application Life-cycle

Answer»

The entry point of Silverlight APPLICATIONS is Silverlight Application CLASS. It provides VARIOUS services which is commonly NEEDED by Silverlight application.

The entry point of Silverlight applications is Silverlight Application class. It provides various services which is commonly needed by Silverlight application.

15.

Explain How Can Silverlight Use Asx Files.

Answer»

An ASX FILE is an XML file in which media files are specified in the playlist. USING ASX files in SILVER is PRETTY simple. Assign the ‘source’ property of a MediaElement OBJECT to the ASX file name.

An ASX file is an XML file in which media files are specified in the playlist. Using ASX files in silver is pretty simple. Assign the ‘source’ property of a MediaElement object to the ASX file name.

16.

What Is A .xap File? Explain With An Example.

Answer»

A .xap file is an APPLICATION package BASED on SILVERLIGHT which will be generated when the Silverlight project is built. This file HELPFUL in creating heavily client based Silverlight applications.

A .xap file is an application package based on Silverlight which will be generated when the Silverlight project is built. This file helpful in creating heavily client based Silverlight applications.

17.

What Is Silverlight.js File? Explain With An Example.

Answer»

Silverlight.js file is a Java Script helper file. It supports for adding a Silverlight application to a web PAGE through Java Script. It has a number of methods DEFINED to help with, most importantly the create Object and createObjectEx. The following are CERTAIN notable functions and event handlers :
-getSilverlight, isBrowserRestartRequired, isInstalled, onGetSilverlight, onSilverlightInstalled, WaitForInstallCompletion.

The Silverlight.js file is installed along with Silverlight 2 SDK.

Using Visual Studio 2008, one can create a quick sample project by selecting File->New Project and selecting Silverlight Application. After clicking OK, select “Automatically generate a test page to host Silverlight at build time”. Click on OK. Right click on the new project and add an HTML page.

Silverlight.js file is a Java Script helper file. It supports for adding a Silverlight application to a web page through Java Script. It has a number of methods defined to help with, most importantly the create Object and createObjectEx. The following are certain notable functions and event handlers :
-getSilverlight, isBrowserRestartRequired, isInstalled, onGetSilverlight, onSilverlightInstalled, WaitForInstallCompletion.

The Silverlight.js file is installed along with Silverlight 2 SDK.

Using Visual Studio 2008, one can create a quick sample project by selecting File->New Project and selecting Silverlight Application. After clicking OK, select “Automatically generate a test page to host Silverlight at build time”. Click on OK. Right click on the new project and add an HTML page.

18.

Explain How To Add The Reference Of A Class Library Project In Silverlight Application Project

Answer»

The following is the process for adding the REFERENCE LIBRARY project: After DEFINING business object CLASSES in another project.

The following is the process for adding the reference library project: After defining business object classes in another project.

19.

Describe How To Perform Event Handling In Silver Light

Answer»

Event handling is performed in TWO event CASES – Input events and Non-input events.

Event handling is performed in two event cases – Input events and Non-input events.

20.

What Are The Limitations Of Using External Fonts In Silverlight?

Answer»

One of the major CHALLENGES is to USE a DOWNLOADER and some of the SetFontSource METHODS on a TextBlock to PERFORM it.

One of the major challenges is to use a downloader and some of the SetFontSource methods on a TextBlock to perform it.

21.

Difference Between Wpf And Silverlight

Answer»

In terms of features and functionality, SILVER LIGHT is a SUB set of Windows PRESENTATION Foundation.

In terms of features and functionality, Silver light is a sub set of Windows Presentation Foundation.

22.

Explain Silverlight Architecture.

Answer»

Silver light is a plug-in USED for DIFFERENT PLATFORMS and browsers. It is designed for offering media EXPERIENCES BASED on .net platform.

Silver light is a plug-in used for different platforms and browsers. It is designed for offering media experiences based on .net platform.

23.

Does Silverlight Support Mpeg4 And H.264 Video, Or Advanced Audio Coding (aac) Audio, Or Flash Video?

Answer»

No. HOWEVER, content from many of these formats can be transcoded into formats that are SUPPORTED by Silverlight, such as by an AUTOMATED server function (many available third-party SOLUTIONS support this workflow), and then incorporated into a Silverlight-based application.

No. However, content from many of these formats can be transcoded into formats that are supported by Silverlight, such as by an automated server function (many available third-party solutions support this workflow), and then incorporated into a Silverlight-based application.

24.

Will Silverlight Support Live Streaming Events As Well As Downloading Media?

Answer»

Yes, in the FINAL release. The February CTP is OPTIMIZED for progressive "download and play" scenarios to TEST the PLATFORM.

Yes, in the final release. The February CTP is optimized for progressive "download and play" scenarios to test the platform.

25.

Will Silverlight Support All The Codecs Windows Media Player Supports?

Answer»

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.

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.

26.

What Audio Or Video Formats Are Supported In Silverlight?

Answer»

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.

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.

27.

Do I Need To Have The Latest Version Of Windows Media Player Installed?

Answer»

No. SILVERLIGHT is completely INDEPENDENT and when installed is less than 2 MB in SIZE.

No. Silverlight is completely independent and when installed is less than 2 MB in size.

28.

Can I Stream Live Content/events?

Answer»

No, the service only supports on-demand content today. Customers REQUIRING ADDITIONAL capabilities are encouraged to CONTACT a Windows Media Streaming Hosting PROVIDER.

No, the service only supports on-demand content today. Customers requiring additional capabilities are encouraged to contact a Windows Media Streaming Hosting Provider.

29.

How Does The Service Stream Content?

Answer»

Content is STREAMED progressively using a progressive DOWNLOAD MECHANISM today. Active streaming support using Windows Media SERVICES is being CONSIDERED based on customer feedback in the future.

Content is streamed progressively using a progressive download mechanism today. Active streaming support using Windows Media Services is being considered based on customer feedback in the future.

30.

Do You Support Digital Rights Management To Protect My Videos?

Answer»

In the future, SilverlightTM Streaming will provide support for DRM-encoded video as an optional PAID TURNKEY OFFERING.

In the future, SilverlightTM Streaming will provide support for DRM-encoded video as an optional paid turnkey offering.

31.

Can I Tap Into Other Windows Livetm Services?

Answer»

Yes, customers are able to USE Windows Live IDTM and other Windows Live APIS TODAY and in the future. SILVERLIGHT provides a GREAT platform to consume these services.

Yes, customers are able to use Windows Live IDTM and other Windows Live APIs today and in the future. Silverlight provides a great platform to consume these services.

32.

It's Free-what's The Catch?

Answer»

There is no CATCH. This is a new offering DESIGNED to ACCELERATE the development of the next GENERATION of media rich applications.

There is no catch. This is a new offering designed to accelerate the development of the next generation of media rich applications.

33.

Why Is This Service Branded With Windows Livetm?

Answer»

This SERVICE is PART of the WINDOWS LiveTM PLATFORM.

This service is part of the Windows LiveTM Platform.

34.

What Is The Difference Between Silverlighttm Streaming And Other Video Sharing Services?

Answer»

SilverlightTM STREAMING is focused on developers who want to build their own media-rich applications or Web SITES. UNLIKE other video sharing services, there are no third-party branding REQUIREMENTS for the use of SilverlightTM Streaming, and the developer is in full CONTROL over their rich media experience within the context of their Web site.

SilverlightTM Streaming is focused on developers who want to build their own media-rich applications or Web sites. Unlike other video sharing services, there are no third-party branding requirements for the use of SilverlightTM Streaming, and the developer is in full control over their rich media experience within the context of their Web site.

35.

How Much Is The Pay-for-use Service If I Chose Not To Use Microsoft-sponsored Advertising?

Answer»

We’re not prepared to discuss the final pricing of the nonadvertising-based PRODUCT at this time except to say that it will be EXTREMELY cost COMPETITIVE. The advertising-based product will continue to be FREE in perpetuity.

We’re not prepared to discuss the final pricing of the nonadvertising-based product at this time except to say that it will be extremely cost competitive. The advertising-based product will continue to be free in perpetuity.

36.

What Kinds Of Fonts Are Supported With Silverlight?

Answer»

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.

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.

37.

Asp.net Overview

Answer»

This article includes BRIEF about ASP.NET, advantages of ASP.NET, navigation sequence of ASP.NET WEB form, web Form components, .NET framework, event handlers in ASP.NET, web form events, server control events in ASP.NET, and server controls vs. HTML controls, validation controls, navigation, and steps to store cookies, ways to authenticate and authorize users in ASP.NET etc.

This article includes brief about ASP.NET, advantages of ASP.NET, navigation sequence of ASP.NET web form, web Form components, .NET framework, event handlers in ASP.NET, web form events, server control events in ASP.NET, and server controls vs. HTML controls, validation controls, navigation, and steps to store cookies, ways to authenticate and authorize users in ASP.NET etc.

38.

Asp.net Globalization-localization

Answer»

Here you have description of globalization, LOCALIZATION and their approaches in ASP.NET. It also DESCRIBES resource FILES and SATELLITE ASSEMBLIES.

Here you have description of globalization, localization and their approaches in ASP.NET. It also describes resource files and satellite assemblies.

39.

Explain The Use Of Resource Manager Class In .net.

Answer»

The ResourceManager class performs:

  • A LOOK up for culture-specific resources
  • PROVISION of resource FALLBACK when a LOCALIZED resource does not exist
  • Supports for resource serialization

The ResourceManager class performs:

40.

Explain How To Prepare Culture-specific Formatting In .net.

Answer»

The CutureInfo class can be used for this purpose. It represents INFORMATION about a SPECIFIC CULTURE including the culture NAMES, the writing system, and the calendar. It also PROVIDES an access to objects that provide information for common operations like date formatting and string sorting.

The CutureInfo class can be used for this purpose. It represents information about a specific culture including the culture names, the writing system, and the calendar. It also provides an access to objects that provide information for common operations like date formatting and string sorting.

41.

Describe How To Implement Globalization And Localization In The Use Interface In .net.

Answer»

Globalization is the process of making an application that supports multiple cultures without mixing up the business logic and the culture related information of that application.

Localization involves adapting a global application and applying culture specific ALTERATIONS to it.

The CLASSES and the interfaces provided by the System.Resources allow storing culture specific resources.

The ResourceManager class performs:

  • A look up for culture-specific resources
  • Provision of RESOURCE fallback when a LOCALIZED resource does not exist
  • Supports for resource serialization

Globalization is the process of making an application that supports multiple cultures without mixing up the business logic and the culture related information of that application.

Localization involves adapting a global application and applying culture specific alterations to it.

The classes and the interfaces provided by the System.Resources allow storing culture specific resources.

The ResourceManager class performs:

42.

What Are Resource File And How Do We Generate Resource File?

Answer»

Resource files are USED to separate the implementation of the application from its USER Interface. Thus, it eliminates the need to change a various sections of CODE to add a different language.

Resource files are used to separate the implementation of the application from its User Interface. Thus, it eliminates the need to change a various sections of code to add a different language.

43.

What Is Unicode?

Answer»

UNICODE (UCS-2 ISO 10646) is a 16-bit character encoding that contains all of the characters (216 = 65,536 different characters total) in common use in the world's major languages, including Vietnamese. The Universal Character Set provides an unambiguous representation of text across a range of scripts, languages and platforms. It provides a unique number, called a code point (or scalar value), for every character, no matter what the platform, no matter what the program, no matter what the language. The Unicode standard is modeled on the ASCII character set. Since ASCII's 7-bit character size is inadequate to handle multilingual text, the Unicode Consortium adopted a 16-bit architecture which extends the BENEFITS of ASCII to multilingual text.

Unicode characters are consistently 16 bits wide, regardless of language, so no escape sequence or control code is required to specify any character in any language. Unicode character encoding treats symbols, alphabetic characters, and ideographic characters identically, so that they can be used simultaneously and with equal facility. Computer programs that use Unicode character encoding to represent characters but do not display or print text can (for the most part) remain unaltered when new scripts or characters are introduced.

The Unicode Standard has been adopted by such industry leaders as Apple, HP, IBM, Microsoft, Oracle, SAP, Sun, Sybase, Unisys, and many others. Unicode is required by modern standards such as XML, Java, .NET, ECMAScript (JavaScript), LDAP, CORBA 3.0, WML, etc., and is the official way to implement ISO/IEC 10646. It is supported in many OPERATING systems, all modern browsers, and many other products. The emergence of the Unicode Standard, and the availability of tools SUPPORTING it, offers significant cost savings over the use of legacy character sets. It allows data to be transported through many different systems without corruption.

Unicode (UCS-2 ISO 10646) is a 16-bit character encoding that contains all of the characters (216 = 65,536 different characters total) in common use in the world's major languages, including Vietnamese. The Universal Character Set provides an unambiguous representation of text across a range of scripts, languages and platforms. It provides a unique number, called a code point (or scalar value), for every character, no matter what the platform, no matter what the program, no matter what the language. The Unicode standard is modeled on the ASCII character set. Since ASCII's 7-bit character size is inadequate to handle multilingual text, the Unicode Consortium adopted a 16-bit architecture which extends the benefits of ASCII to multilingual text.

Unicode characters are consistently 16 bits wide, regardless of language, so no escape sequence or control code is required to specify any character in any language. Unicode character encoding treats symbols, alphabetic characters, and ideographic characters identically, so that they can be used simultaneously and with equal facility. Computer programs that use Unicode character encoding to represent characters but do not display or print text can (for the most part) remain unaltered when new scripts or characters are introduced.

The Unicode Standard has been adopted by such industry leaders as Apple, HP, IBM, Microsoft, Oracle, SAP, Sun, Sybase, Unisys, and many others. Unicode is required by modern standards such as XML, Java, .NET, ECMAScript (JavaScript), LDAP, CORBA 3.0, WML, etc., and is the official way to implement ISO/IEC 10646. It is supported in many operating systems, all modern browsers, and many other products. The emergence of the Unicode Standard, and the availability of tools supporting it, offers significant cost savings over the use of legacy character sets. It allows data to be transported through many different systems without corruption.

44.

What Is The Difference Between Localization And Globalization?

Answer»

Globalization is process of identifying how MANY RESOURCES needs to be localized to adopt a multiple CULTURE support, while Localization is actual process of translating resource to a SPECIFIC culture. So Localization is the part of Globalization.

Globalization is process of identifying how many resources needs to be localized to adopt a multiple culture support, while Localization is actual process of translating resource to a specific culture. So Localization is the part of Globalization.

45.

Explain An Object, Class And Method.

Answer»

An object is an entity that KEEPS TOGETHER STATE and behaviors. For instance, a car encapsulates state such as red color, 900 cc ETC and behaviors as 'Start', 'Stop' etc., so does an object.

An object is an instance of a class. If you consider “Dog” as a class, it will contain all possible dog traits, while object “German Shepherd” contains CHARACTERISTICS of specific type of dog.

A class represents description of objects that share same attributes and actions. It defines the characteristics of the objects such as attributes and actions or behaviors. It is the blue print that describes objects.

Method is an object’s behavior. If you consider “Dog” as an object then its behaviors are bark, walk, run etc.

An object is an entity that keeps together state and behaviors. For instance, a car encapsulates state such as red color, 900 cc etc and behaviors as 'Start', 'Stop' etc., so does an object.

An object is an instance of a class. If you consider “Dog” as a class, it will contain all possible dog traits, while object “German Shepherd” contains characteristics of specific type of dog.

A class represents description of objects that share same attributes and actions. It defines the characteristics of the objects such as attributes and actions or behaviors. It is the blue print that describes objects.

Method is an object’s behavior. If you consider “Dog” as an object then its behaviors are bark, walk, run etc.

46.

Can You Store Multiple Data Types In System.array?

Answer»

No.

No.

47.

Describe The .net Base Class Library.

Answer»

The .NET Framework class LIBRARY escribe is a library of CLASSES, interfaces, and value types.
This library SYSTEM functionalities and is the foundation of .NET Framework APPLICATIONS, components, and controls.

The .NET Framework class library escribe is a library of classes, interfaces, and value types.
This library system functionalities and is the foundation of .NET Framework applications, components, and controls.

48.

What Are The Steps Involved To Fill A Dataset?

Answer»

a. Create a connection object.
b. Create an adapter by PASSING the string query and the connection object as PARAMETERS.
c. Create a new object of dataset.
d. Call the Fill method of the adapter and pass the dataset object.

Example:
VB.NET Code:-
DIM strSQL as String
strSQL = "SELECT * from tbl"
Dim SQLCMD As New SqlCommand(strSQL, sqlConn)
Dim SDA As New SqlDataAdapter(sqlCmd)
Dim ds As New DataSet
sda.Fill(ds)

a. Create a connection object.
b. Create an adapter by passing the string query and the connection object as parameters.
c. Create a new object of dataset.
d. Call the Fill method of the adapter and pass the dataset object.

Example:
VB.NET Code:-
Dim strSQL as String
strSQL = "SELECT * from tbl"
Dim sqlCmd As New SqlCommand(strSQL, sqlConn)
Dim sda As New SqlDataAdapter(sqlCmd)
Dim ds As New DataSet
sda.Fill(ds)

49.

Differences Between "dataset" And "datareader".

Answer»

DATASET:

  • DataSet object can contain multiple rowsets from the same data source as well as from the relationships between them.
  • Dataset is a DISCONNECTED architecture
  • Dataset can persist data.
  • A DataSet is well SUITED for data that needs to be retrieved from multiple tables.
  • Due to OVERHEAD DatsSet is slower than DataReader.


Datareader

  • DataReader provides forward-only and read-only access to data.
  • Datareader is connected architecture. It has live connection while reading data
  • Datareader can not persist data.
  • Speed performance is better in DataReader.

Dataset:


Datareader

50.

What's Difference Between "optimistic" And "pessimistic" Locking?

Answer»
  • In pessimistic locking when user wants to update data it LOCKS the RECORD and till then no one can update data. Other user’s can only view the data when there is pessimistic locking.
  • In optimistic locking multiple USERS can open the same record for UPDATING, thus increase maximum concurrency. Record is only locked when updating the record. This is the most preferred way of locking practically. Now a days in browser based application it is very common and having pessimistic locking is not a practical solution.