MCQs > IT & Programming > Microsoft Silverlight MCQs > Basic Microsoft Silverlight MCQs

Basic Microsoft Silverlight MCQ

1. Which of the following operations are permitted by Silverlight to a handler that handles a user-initiated event?

Answer

Correct Answer: Navigating from a HyperlinkButton.
Showing certain dialogs such as SaveFileDialog and OpenFileDialog
Setting IsFullScreen property.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

2. Which of the following characters are NEVER allowed in a cross-domain request path when paths are restricted by the client access policy file in the Silverlight Cross-Domain Policy File?

Answer

Correct Answer: Consecutive dot characters (..)
Dot followed by a forward slash (./)
Percent sign (%)

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

3. What will happen if you add one more child element to a Viewbox control in a Silverlight application?

Answer

Correct Answer: An ArgumentException will be thrown at run time.

Note: This Question is unanswered, help us to find answer for this one

4. Can you apply the BlurEffect and the DropShadowEffect directly to the same element in your application?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

5. Which of the following features are supported by the Out-of-browser applications that target Silverlight 4 RC?

Answer

Correct Answer: They allow you to modify the Out-of-Browser application window at run time.
Trusted applications can hide the title bar and border of the out-of-browser application window in order to provide a completely customized user interface.
They allow you to display HTML content within your out-of-browser application to replace functionality provided by a host Web page.
Out-of-browser applications can display temporary notification windows to inform users of incoming e-mails.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

6. Which of the following statements is correct with regard to Sliverlight TwoWay data binding?

Answer

Correct Answer: TwoWay data bindings update both the target and the source when either changes.

Note: This Question is unanswered, help us to find answer for this one

7. What is the function of COR_PRF_GC_GENERATION Enumeration used by the profiling API?

Answer

Correct Answer: It identifies a garbage collection generation by dividing objects into generations while executing the application.

Note: This Question is unanswered, help us to find answer for this one

8. What is the function of the element marked as A (see image) in the Silverlight policy file format?

Answer

Correct Answer: It defines the resources that can be accessed in a certain policy.

Note: This Question is unanswered, help us to find answer for this one

9. Which of the following is NOT a valid value for the Stretch property of the ImageBrush class when you use Silverlight brush objects to paint an area with images in your application?

Answer

Correct Answer: All of the above values are valid.

Note: This Question is unanswered, help us to find answer for this one

10. Does Silverlight support implicit styles applied using the TargetType attribute value?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

11. How can you view the contents of a .xap file (marked as A in the image), that is generated when the Silverlight project is built?

Answer

Correct Answer: To view the contents of a .xap file you can rename the extension of the .xap file to .zip.

Note: This Question is unanswered, help us to find answer for this one

12. In Sliverlight, Canvas is used solely as a container for other objects within which you can explicitly position child objects by using coordinates that are relative to the area. In which of the following conditions is a Canvas NOT visible when you run your application?

Answer

Correct Answer: When the Width and Height properties are both equal to 0.
When the Opacity property is equal to 0

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

13. What are the benefits of Code Contracts in Silverlight?

Answer

Correct Answer: All of the above.

Note: This Question is unanswered, help us to find answer for this one

14. Which of following is NOT a valid string method in the Silverlight .NET Framework?

Answer

Correct Answer: All of the above are valid string methods.

Note: This Question is unanswered, help us to find answer for this one

15. The CLR debugging services let a debugger change the physical location of the instruction pointer during execution, although this may be a dangerous operation. In which of the following conditions may the instruction pointer be changed successfully?

Answer

Correct Answer: When the current instruction pointer and the target instruction pointer are both at sequence points.
When the target instruction pointer is not located in an exception filter, a catch block, or a finally block.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

16. What happens when you add a Silverlight Key-Frame animation in your application whose Duration property is Automatic or equal to the time of the last key frame?

Answer

Correct Answer: The animation ends

Note: This Question is unanswered, help us to find answer for this one

17.

Consider the XAML code given below. Which color will apply to the background if you add this code into your application?


 

Answer

Correct Answer:

Only red.  


Note: This Question is unanswered, help us to find answer for this one

18. What is the function of the TextBlock control in Silverlight?

Answer

Correct Answer: It is used to display small amounts of text content.

Note: This Question is unanswered, help us to find answer for this one

19. What is the function of the "Peek" method that can be performed on a stack and its elements?

Answer

Correct Answer: It returns an element at the top of the stack but does not remove it from the stack.

Note: This Question is unanswered, help us to find answer for this one

20. Which of the following Microsoft applications/tools is meant for creating graphical interfaces for web and desktop applications that blend the features of these two types of applications?

Answer

Correct Answer: Microsoft Expression Blend

Note: This Question is unanswered, help us to find answer for this one

21. Which of the following is correct if you define the accessibility of the member as "family" in a class?

Answer

Correct Answer: The member is accessible from within the same type as the member, and from derived types that inherit from it.

Note: This Question is unanswered, help us to find answer for this one

22. Which of the following is NOT true of Silverlight.js?

Answer

Correct Answer: It provides static contract verification, runtime checking, and documentation generation.

Note: This Question is unanswered, help us to find answer for this one

23. Which of the following is NOT a property of the "Exception" class?

Answer

Correct Answer: onError property

Note: This Question is unanswered, help us to find answer for this one

24. Which of the following are valid Sliverlight data bindings?

Answer

Correct Answer: All of the above are valid Silverlight Data Bindings.

Note: This Question is unanswered, help us to find answer for this one

25. Which of the following statements is INCORRECT with regard to Geometry Vs. Shape objects in Silverlight?

Answer

Correct Answer: Shape objects are not UIElement objects, but Geometry objects are UIElement objects.

Note: This Question is unanswered, help us to find answer for this one

26. Which of the following controls allows you to set the content and header of a tab in TabControl?

Answer

Correct Answer: TabItem

Note: This Question is unanswered, help us to find answer for this one

27. Which of the following operations can be performed by the "Interlocked" class when included in your Silverlight application?

Answer

Correct Answer: It can be used to add an integer value to a variable and return the new value of the variable. It can be used to increment or decrement a variable and return the resulting value.
It can perform an atomic exchange of the value in a specified variable, returning that value and replacing it with a new value.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

28. Which of the following dynamic languages can be used for application development in Silverlight?

Answer

Correct Answer: IronPython
IronRuby

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

29. When you configure an application for Out-of-Browser Support, what does property marked as A (see image) indicates in the AppManifest.xml file?

Answer

Correct Answer: It appears as a tooltip on the installed application shortcuts

Note: This Question is unanswered, help us to find answer for this one

30. Can debugging take place on Silverlight code and JavaScript code at the same time?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

31. Which of the following MediaElement methods and properties does NOT affect VideoBrush when you paint an area with a video in Silverlight?

Answer

Correct Answer: Clip

Note: This Question is unanswered, help us to find answer for this one

32. Which of the following is correct in relation to a Cryptographic hash when using Cryptographic Services in Silverlight?

Answer

Correct Answer: It maps data from any length to a fixed-length byte sequence. A different two-byte sequence will not hash to the same value.

Note: This Question is unanswered, help us to find answer for this one

33. Which of the following Interpolation methods is NOT supported by Key-Frame animations?

Answer

Correct Answer: Polynomial interpolation

Note: This Question is unanswered, help us to find answer for this one

34. What does the Silverlight Debugging API "GetStartupNotificationEvent" function do?

Answer

Correct Answer: It creates or opens an event handle that will be signaled upon by any common language runtime (CLR) that is loading in the specified target process.

Note: This Question is unanswered, help us to find answer for this one

35. Suppose you put a GridSplitter control into a cell on a Grid by setting the value of HorizontalAlignment and VerticalAlignment properties to stretch. What will be the result when you run your application?

Answer

Correct Answer: Columns will be resized if ActualHeight is greater than or equal to ActualWidth. Otherwise, rows will be resized.

Note: This Question is unanswered, help us to find answer for this one

36. By default, when an error message is selected in the ValidationSummary control, it attempts to set focus on the control where the error originated. How will you disable this behavior?

Answer

Correct Answer: By setting FocusControlsOnClick property to false.

Note: This Question is unanswered, help us to find answer for this one

37. Which of the following wildcard characters is NOT allowed for domain uri (marked as B in the image) in the Silverlight Policy File?

Answer

Correct Answer: "http://.* "

Note: This Question is unanswered, help us to find answer for this one

38. What is the correct order of values (from highest to lowest precedence) that the Silverlight property system uses when assigning the run-time values of dependency properties?

Answer

Correct Answer: Active animations >Local value>Templated properties>Style setters>Default value

Note: This Question is unanswered, help us to find answer for this one

39. Which of the following is NOT a restriction that you come across if you want to host your Silverlight application and store your images on different servers?

Answer

Correct Answer: You cannot store your images on a cross-domain site as long as the scheme of that cross-domain site is the same as the scheme of the site hosting your application.

Note: This Question is unanswered, help us to find answer for this one

40. Which of the following is incorrect with regard to the IConvertible interface in the .NET Framework for Silverlight?

Answer

Correct Answer: It can be used both at design time and at run time.

Note: This Question is unanswered, help us to find answer for this one

41. Which of the following is INCORRECT with regard to enumerations in the .NET Framework for Silverlight?

Answer

Correct Answer: They can implement interfaces.

Note: This Question is unanswered, help us to find answer for this one

42. This property is an IDictionary that can hold arbitrary data in key-value pairs.

Answer

Correct Answer: It is an application programming interface in the .NET Framework for building connected, service-oriented applications.

Note: This Question is unanswered, help us to find answer for this one

43. What is the function of the InnerException property of the "Exception" class?

Answer

Correct Answer: This property can be used to create and preserve a series of exceptions during exception handling.

Note: This Question is unanswered, help us to find answer for this one

44. What is the functions of Common Type System in the .NET Framework for Silverlight?

Answer

Correct Answer: It provides an object-oriented model that supports the complete implementation of many programming languages.
It defines rules that languages must follow, which helps to ensure that objects written in different languages can interact with one other.
It establishes a framework that helps enable cross-language integration, type safety, and high-performance code execution.
It provides a library that contains the primitive data types used in application development.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

45. Which of the following is the correct description of a sealed class in the .NET Framework for Silverlight?

Answer

Correct Answer: It specifies that another class cannot be derived from this type of class

Note: This Question is unanswered, help us to find answer for this one

46.

Which of the discrepancies are found in the below code:


   

Answer

Correct Answer:

Border and Textblock should be not be child elements of each other.    


Note: This Question is unanswered, help us to find answer for this one

47. Can you add the reference of a Class library project in a Silverlight application project?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

48. What is the usage of RelativeSource, a markup extension that is defined under the default Silverlight XAML namespace?

Answer

Correct Answer: It enables a particular form of template binding.

Note: This Question is unanswered, help us to find answer for this one

49. Which of the following modes of debugging are supported by the Silverlight CLR debugging API?

Answer

Correct Answer: Debugging mode
Edit and Continue mode

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

50. Which of the following properties will you use if you want to apply the same property settings to multiple ScrollViewer controls?

Answer

Correct Answer: Style

Note: This Question is unanswered, help us to find answer for this one

51. Which of the following is INCORRECT in relation to Transparent code in Silverlight?

Answer

Correct Answer: It can call native code via a P/Invoke or COM interop.

Note: This Question is unanswered, help us to find answer for this one

52. Which of the following file formats are supported by the Image class when you add an Image control in your application to display images?

Answer

Correct Answer: Both a and b

Note: This Question is unanswered, help us to find answer for this one

53. Which of the following is/are INCORRECT with regard to interfaces in the .NET Framework for Silverlight?

Answer

Correct Answer: Interfaces can define fields.
They can only define static members.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

54. What is the function of a StackPanel control in Silverlight?

Answer

Correct Answer: It provides a surface to display child elements in a line, either horizontally or vertically.

Note: This Question is unanswered, help us to find answer for this one

55.

Silverlight offers a subset of the functionality provided by Windows Presentation Foundation (WPF) and enables you to build rich internet applications that are easy to deploy. Which of the following Windows Presentation Foundation (WPF) features are NOT supported by Silverlight?

Answer

Correct Answer:

All of the above 


Note: This Question is unanswered, help us to find answer for this one

56. Which of the following widening conversions can be performed on the datatype "Int32" without loss of information using the .NET Framework for Silverlight?

Answer

Correct Answer: It can be converted to Int64.
It can be converted to Double.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

57. Which property of the InkPresenter will you use if you want to contain the ink within the InkPresenter control?

Answer

Correct Answer: Clip

Note: This Question is unanswered, help us to find answer for this one

58. Which of the following methods of the Socket class reads incoming data into one or more buffers from a connected socket?

Answer

Correct Answer: ReceiveAsync

Note: This Question is unanswered, help us to find answer for this one

59. Which of the following types of Media are currently supported by Silverlight?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

60. Which of the following options helps your Silverlight applications run faster, smoothly?

Answer

Correct Answer: Hide all objects that are not being rendered in full-screen mode when your application goes into full-screen mode.
Always use the Visibility property instead of Opacity property if you simply want to make an object visible or not visible.
Set the Stretch property value to Fill.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

61. How can you protect your Silverlight client application against malicious services?

Answer

Correct Answer: Avoid initiating communications with an untrusted service automatically, without an explicit user choice.
Avoid initiating communications with an untrusted service when a crash or hang causes the user to lose data in your application.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

62. The Profiling API can retrieve information about actions and events occurring in the CLR. Which of the following actions/events can it retrieve?

Answer

Correct Answer: Class loading and unloading events.
CLR startup and shutdown events
Transitions between managed and unmanaged code execution.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

63. Which of the following is INCORRECT with regard to the use of Silverlight brush objects to paint an area with Linear Gradient?

Answer

Correct Answer: Linear Gradients brush's axis is defined by a circle. Its colors radiate outward from its origin.

Note: This Question is unanswered, help us to find answer for this one

64. Which of the following is NOT a feature of Silverlight?

Answer

Correct Answer: It supports dynamic resources.

Note: This Question is unanswered, help us to find answer for this one

65. Which of the following is NOT a valid security level for Silverlight code?

Answer

Correct Answer: All of the above are valid security levels.

Note: This Question is unanswered, help us to find answer for this one

66. Which of the following Networking security policy files are supported by Silverlight?

Answer

Correct Answer: Flash policy file
Silverlight policy file

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

67. Which of the following is incorrect with regard to the use of Multithreading on a single-processor computer?

Answer

Correct Answer: A background thread executes only when the number of foreground threads executing is smaller than the number of processors.

Note: This Question is unanswered, help us to find answer for this one

68. Which of the following Core Presentation Component features of the Silverlight platform helps in enabling dynamic positioning of UI elements?

Answer

Correct Answer: Layout

Note: This Question is unanswered, help us to find answer for this one

69. Which of the following is TRUE about Managed API Error handling?

Answer

Correct Answer: All of the given options are true

Note: This Question is unanswered, help us to find answer for this one

70. What is between a Parent Panel and a Child Element?

Answer

Correct Answer: Layout Slot

Note: This Question is unanswered, help us to find answer for this one

71. Which of the following is NOT a feature of .NET framework for SIlverlight?

Answer

Correct Answer: Data binding

Note: This Question is unanswered, help us to find answer for this one

72. Which of the following Microsoft.Win32.SafeHandles Namespace class provides a base class for Win32 safe handle implementations in which the value of -1 indicates an invalid handle?

Answer

Correct Answer: SafeHandleMinusOneIsInvalid

Note: This Question is unanswered, help us to find answer for this one

73. Which of the following classes enable the API/program to submit requests to a HTTP based Web service?

Answer

Correct Answer: HTTP Classes

Note: This Question is unanswered, help us to find answer for this one

74. What style are XAML placeholders typically in?

Answer

Correct Answer: Italic

Note: This Question is unanswered, help us to find answer for this one

75. Does Silverlight have a protocol to defend against DOS attacks?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

76. Which of the following Microsoft.Win32.SafeHandles Namespace class provides a base class for Win32 critical handle implementations?

Answer

Correct Answer: CriticalHandleMinusOneIsInvalid

Note: This Question is unanswered, help us to find answer for this one

77. Which of the following is a VALID requirement for properties of a custom class as XAML attributes?

Answer

Correct Answer: Should not a property type that is an abstract class or interface

Note: This Question is unanswered, help us to find answer for this one

78. Which of the following provide the foundation for building Web services for a Silverlight client application ?

Answer

Correct Answer: Windows Communication Foundation (WCF) Services

Note: This Question is unanswered, help us to find answer for this one

79. How can you set attached properties in XAML ?

Answer

Correct Answer: by using the syntax AttachedPropertyProvider.PropertyName

Note: This Question is unanswered, help us to find answer for this one

80. When are you most likely to encounter an XSS attack in Silverlight?

Answer

Correct Answer: When the user cannot escape an attacker-controlled string, and that string is inserted into markup.

Note: This Question is unanswered, help us to find answer for this one

81. Which of the following .NET framework Class Library for Silverlight contains classes that support interaction with a local database in Windows Phone applications?

Answer

Correct Answer: System.Data.Linq

Note: This Question is unanswered, help us to find answer for this one

82. Which of the following Microsoft.Xna.Framework Namespace structures represents a point in a multi-point curve?

Answer

Correct Answer: CurveKey

Note: This Question is unanswered, help us to find answer for this one

83. Which of the following JavaScript API for Silverlight provides Silverlight property system services?

Answer

Correct Answer: DependencyObject

Note: This Question is unanswered, help us to find answer for this one

84. Which of the following is most appropriate for applications that extensively perform CRUD operations on a database ?

Answer

Correct Answer: Windows Communication Foundation (WCF) Data Services

Note: This Question is unanswered, help us to find answer for this one

85. What is the max video resolution Silverlight provides for mobile devices?

Answer

Correct Answer: 720p

Note: This Question is unanswered, help us to find answer for this one

86. Does Silverlight SDK still contain the ASP.NET server controls to embed code into your website?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

87. When Silverlight is operating in a sandbox environment, what happens to local storage?

Answer

Correct Answer: It is isolated and cut down to 1 MB.

Note: This Question is unanswered, help us to find answer for this one

88. What data organization technique does the generic class, Queue<T> use?

Answer

Correct Answer: FIFO

Note: This Question is unanswered, help us to find answer for this one

89. What do you use to integrate Silverlight with Javascript code?

Answer

Correct Answer: The HTML object element.

Note: This Question is unanswered, help us to find answer for this one

90. Which of the following Core Presentation Component feature enables rendering of vector and bitmap graphics, animations, and text?

Answer

Correct Answer: UI Rendering

Note: This Question is unanswered, help us to find answer for this one

91. What do you use to debug Silverlight-based applications?

Answer

Correct Answer: Silverlight Tools for Visual Studio

Note: This Question is unanswered, help us to find answer for this one

92. What is the AppManifest.xaml file used for?

Answer

Correct Answer: It identifies the packaged assemblies and application entry point.

Note: This Question is unanswered, help us to find answer for this one

93. Which of the following .NET framework Class Library for Silverlight contains classes provides classes that the binary rewriter can use to handle a contract failure?

Answer

Correct Answer: System.Diagnostics.Contracts.Internal

Note: This Question is unanswered, help us to find answer for this one

94. Which of the following JavaScript API for Silverlight describes the location and color of a transition point in a gradient?

Answer

Correct Answer: GradientStop

Note: This Question is unanswered, help us to find answer for this one

95. Which of the following .NET framework libraries for Silverlight provides classes for using 3-D graphics?

Answer

Correct Answer: Microsoft.Xna.Framework

Note: This Question is unanswered, help us to find answer for this one

96. DomainService (LinqToEntitiesDomainService) s a main object inside which of the following ?

Answer

Correct Answer: Windows Communication Foundation (WCF) RIA Services

Note: This Question is unanswered, help us to find answer for this one

97. What is one way to deploy resource files in Silverlight?

Answer

Correct Answer: Embedded in an assembly in an external library package.

Note: This Question is unanswered, help us to find answer for this one

98. What do GetValue and SetValue calls do within the context of dependency properties?

Answer

Correct Answer: They are responsible for backing the CLR Wrapper property.

Note: This Question is unanswered, help us to find answer for this one

99. What are some container objects that shape objects can be used in?

Answer

Correct Answer: Grid and Canvas

Note: This Question is unanswered, help us to find answer for this one

100. What can happen when you experience an unnecessary invoking of the layout system?

Answer

Correct Answer: You may experience a lapse in application performance.

Note: This Question is unanswered, help us to find answer for this one

101. Which of the following Core Presentation Component feature enables digital rights management of media assets?

Answer

Correct Answer: DRM

Note: This Question is unanswered, help us to find answer for this one

102. Which of the following is NOT a feature of core presentation layer?

Answer

Correct Answer: Data

Note: This Question is unanswered, help us to find answer for this one

103. What needs to be edited to define what is a recoverable exception?

Answer

Correct Answer: The UnhandledException handler.

Note: This Question is unanswered, help us to find answer for this one

104. Which of tehe following feature is NOT offered by Silverlight?

Answer

Correct Answer: None of the given options are valid

Note: This Question is unanswered, help us to find answer for this one

105. What is the parser error property, charPosition?

Answer

Correct Answer: .NET

Note: This Question is unanswered, help us to find answer for this one

106. In Silverlight, can you write code in Visual Basic?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one