Microsoft Silverlight MCQs

Microsoft Silverlight MCQs

Free Microsoft Silverlight MCQ questions answers by mcqss is the perfect place to start if you were looking for a platform to test your knowledge and skills. It’s Free!

1: In Silverlight, can you write code in Visual Basic?

A.   Yes

B.   No, it can only be written in c.

C.   No, it must be written in cobal.

D.   No.

2: What is the parser error property, charPosition?

A.   .XML

B.   .PHP

C.   .NET

D.   .ASP

3: Which of tehe following feature is NOT offered by Silverlight?

A.   None of the given options are valid

B.   Cross-browser, cross-platform support

C.   Access to the .NET Framework programming model

D.   Integration with existing applications

4: What needs to be edited to define what is a recoverable exception?

A.   The UnderhandedException handler.

B.   The ExceptionallyUnhandled handler.

C.   The UnhandledException handler.

D.   The HandledException Unhandler.

5: Which of the following is NOT a feature of core presentation layer?

A.   Layout

B.   UI rendering

C.   Deep Zoom

D.   Data

6: Which of the following Core Presentation Component feature enables digital rights management of media assets?

A.   XAML

B.   UI rendering

C.   Data binding

D.   DRM

7: What can happen when you experience an unnecessary invoking of the layout system?

A.   Silverlight will freeze.

B.   You may experience a lapse in application performance.

C.   Silverlight may crash.

D.   You may experience a system-wide failure.

8: What are some container objects that shape objects can be used in?

A.   Box and Grid

B.   Container Canvas

C.   Grid and Canvas

D.   Canvas and Screen

9: What do GetValue and SetValue calls do within the context of dependency properties?

A.   They are responsible for backing the CLR Wrapper property.

B.   They do nothing and are not related.

C.   They are responsible for controlling the HIVE MapReduce wrapper.

D.   They are responsible for backing the CLR Hadoop wrapper.

10: What is one way to deploy resource files in Silverlight?

A.   Embedded in an external program.

B.   Execute them from a compressed internal library that is encrypted.

C.   Embedded in an assembly in an external library package.

D.   Deploy them from secondary resource files.

11: DomainService (LinqToEntitiesDomainService) s a main object inside which of the following ?

A.   Windows Communication Foundation (WCF) RIA Services

B.   Windows Communication Foundation (WCF) Services

C.   Windows Communication Foundation (WCF) Data Services

D.   HTTP Classes

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

A.   Microsoft.Xna.Framework.Graphics.PackedVector

B.   Microsoft.Xna.Framework

C.   Microsoft.Internal

D.   Microsoft.Internal.Pivot.Interactivity

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

A.   GradientStopCollection

B.   Grid

C.   GridLength

D.   GradientStop

14: 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?

A.   System.Diagnostics.Internal

B.   System.Contracts.Internal

C.   System.Diagnostics.Contracts.Internal

D.   System.Data.Services.Client

15: What is the AppManifest.xaml file used for?

A.   It does nothing.

B.   It identifies the assembled packages and entry point application.

C.   It identifies the packaged assemblies and application entry point.

D.   It enters into an assembled package entry point.

16: What do you use to debug Silverlight-based applications?

A.   Visual Debugger

B.   Debugger Tools

C.   Silverlight Tools for Visual Studio

D.   Silverlight Debugger

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

A.   UI Rendering

B.   Layout

C.   Data Rendering

D.   Deep Zoom

18: What do you use to integrate Silverlight with Javascript code?

A.   The Silverlight javascript.js tool.

B.   The HTML object element.

C.   The integrate.js java tool.

D.   The XAML object element.

19: What data organization technique does the generic class, Queue<T> use?

A.   LIFO

B.   FIFO

C.   LIFO

D.   FILO

20: When Silverlight is operating in a sandbox environment, what happens to local storage?

A.   It is sped up and given maximum oportunity to interact with other programs.

B.   Local storage is being moved to a cloud environment.

C.   It is isolated and cut down to 1 MB.

D.   It is increased to 10 GB with no isolation.

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

A.   Yes.

B.   No, but it can be added.

C.   No

D.   Yes, but it is disabled. Simply enable it in the configuration file.

22: What is the max video resolution Silverlight provides for mobile devices?

A.   360p

B.   720p

C.   1080p

D.   240p

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

A.   Windows Communication Foundation (WCF) Data Services

B.   Sockets and Multicast

C.   Windows Communication Foundation (WCF) Services

D.   Windows Communication Foundation (WCF) RIA Services

24: Which of the following JavaScript API for Silverlight provides Silverlight property system services?

A.   EventTrigger

B.   DependencyObject

C.   Accessibility Object

D.   Glyphs

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

A.   CurveKey

B.   Key

C.   Curve

D.   BoundingFrustum

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

A.   System.Linq

B.   System.Data.Services.Client

C.   System.Linq

D.   System.Data.Linq

27: When are you most likely to encounter an XSS attack in Silverlight?

A.   When running Silverlight in a sandbox.

B.   When starting Silverlight.

C.   When the strings the user created and inserted into markup are subverted by the strings inserted by malicious software.

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

28: How can you set attached properties in XAML ?

A.   by using the syntax AttachedPropertyProvider.PropertyName

B.   by using the syntax AttachedPropertyProvider.Property

C.   by using the syntax AttachedPropertyProvider.Name

D.   by using the syntax AttachedProperty.PropertyName

29: Which of the following provide the foundation for building Web services for a Silverlight client application ?

A.   HTTP Classes

B.   Windows Communication Foundation (WCF) Services

C.   Windows Communication Foundation (WCF) RIA Services

D.   Windows Communication Foundation (WCF) Data Services

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

A.   Has a type converter attributed at the property level.

B.   Uses a by-value primitive property type that the Silverlight XAML processor can natively convert, such as int, or use string.

C.   Uses a by-reference class for property type that has a default constructor

D.   Should not a property type that is an abstract class or interface

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

A.   SafeHandleMinusOneIsInvalid

B.   CriticalHandle

C.   SafeWaitHandle

D.   CriticalHandleMinusOneIsInvalid

32: Does Silverlight have a protocol to defend against DOS attacks?

A.   No, because Silverlight is impervious to Dos attacks.

B.   No, however it can be implemented.

C.   Yes, however it must be purchased from a third-party vender.

D.   Yes

33: What style are XAML placeholders typically in?

A.   Italic

B.   Bold

C.   Subscript

D.   Superscript

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

A.   Windows Communication Foundation (WCF) Data Services

B.   Windows Communication Foundation (WCF) Services

C.   Windows Communication Foundation (WCF) RIA Services

D.   HTTP Classes

35: 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?

A.   CriticalHandleMinusOneIsInvalid

B.   SafeHandleMinusOneIsInvalid

C.   SafeWaitHandle

D.   SafeHandle

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

A.   Window Communication Foundation (WCF)

B.   Data binding

C.   Base class library

D.   CLR (common language runtime)

37: What is between a Parent Panel and a Child Element?

A.   Child Panel

B.   Layout Slot

C.   Child Slot

D.   Layout Panel

38: Which of the following is TRUE about Managed API Error handling?

A.   Exceptions often include information as part of the exception's Message property value

B.   The fixed portion of an exception message are often included as resources in the library, and referenced by the runtime exception when thrown

C.   All of the given options are true

D.   Silverlight run time makes a distinction between platform-originated exceptions and application code-originated exceptions

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

A.   Controls

B.   Data binding

C.   Layout

D.   UI rendering

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

A.   Only one thread runs at any instant

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

C.   Race conditions occur because the programmer did not anticipate the fact that a thread can be preempted at an awkward moment, sometimes allowing another thread to reach a code block first.

41: Which of the following Networking security policy files are supported by Silverlight?

A.   Flash policy file

B.   Silverlight policy file

C.   Publisher policy file

D.   Group policy file

42: Which of the following is NOT a valid security level for Silverlight code?

A.   Transparent code

B.   SafeCritical code

C.   Critical code

D.   All of the above are valid security levels.

43: Which of the following is NOT a feature of Silverlight?

A.   It supports dynamic resources.

B.   It includes compelling graphics that users can manipulate- drag, turn, and zoom- directly in the browser.

C.   It streams video and audio.

D.   It is a cross-browser, cross-platform technology.

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

A.   It paints an area with a gradient that is defined along a line called the gradient axis.

B.   You can specify the gradient's colors and their location along the gradient axis using GradientStop objects.

C.   You can also modify the gradient axis, which enables you to create horizontal and vertical gradients and reverse the gradient direction.

D.   It paints an area with colors that blend together along an axis.

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

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

A.   Class loading and unloading events.

B.   Supports remote profiling.

C.   CLR startup and shutdown events

D.   Support for self-modifying applications.

E.   Transitions between managed and unmanaged code execution.

46: How can you protect your Silverlight client application against malicious services?

A.   Avoid initiating communications with an untrusted service automatically, without an explicit user choice.

B.   Avoid initiating communications with an untrusted service when a crash or hang causes the user to lose data in your application.

C.   To prevent spoofing and information disclosure, use HTTP to access services, especially when sensitive data is being transferred.

47: Which of the following options helps your Silverlight applications run faster, smoothly?

A.   Hide all objects that are not being rendered in full-screen mode when your application goes into full-screen mode.

B.   Always use the Visibility property instead of Opacity property if you simply want to make an object visible or not visible.

C.   Always set the width and height of a MediaElement object.

D.   Set the Stretch property value to Fill.

48: Which of the following types of Media are currently supported by Silverlight?

A.   Advanced Stream Redirector (ASX) playlist file format

B.   Windows Media Audio 8 (WMA 8)

C.   Windows Media Video 8 (WMV 2)

D.   ISO/MPEG Layer-3 compliant data stream input (MP3)

E.   All of the above

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

A.   ConnectAsync

B.   ReceiveAsync

C.   SendAsync

D.   Shutdown

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

A.   Clip

B.   Background

C.   Children

D.   Strokes