0

WPF and Silverlight Introduction

Description: This Test consists of WPF with Silverlight related topic. The questions are useful for the GATE and other exams,
Number of Questions: 20
Created by:
Tags: Dot Net Silverlight CS GATE IT questions programming questions Information Technology
Attempted 0/20 Correct 0 Score 0

What is the role of PresentationCore.dll portion of managed code in Managed layer of Windows Presentation Foundation (WPF)?

  1. This portion holds the top level WPF elements like Windows, panels, controls, styles, etc.

  2. It implements the end-user presentation features.

  3. It provides a managed wrapper for MIL and implements the core services for WPF such as UI Element and visual from.

  4. It holds basic elements to be reused outside the WPF environment like Dispatcher objects and Dependency objects.

  5. Both (2) and (3)


Correct Option: C
Explanation:

PresentationCore.dll portion of managed code is responsible for that.

What is the role of PresentationFramework.dll portion of managed code in Managed layer of Windows Presentation Foundation (WPF)?

  1. This portion holds the top level WPF elements like Windows, panels, controls, styles, etc.

  2. It implements the end-user presentation features.

  3. It provides a managed wrapper for MIL and implements the core services for WPF such as UI Element and visual from.

  4. It holds basic elements to be reused outside the WPF environment like Dispatcher objects and Dependency objects.

  5. Both (1) and (2)


Correct Option: E
Explanation:

These are the correct statements.

What is the role of WindowsBase.dll portion of managed code in Managed layer of Windows Presentation Foundation (WPF)?

  1. This portion holds the top level WPF elements like Windows, panels, controls, styles, etc.

  2. It implements the end-user presentation features.

  3. It provides a managed wrapper for MIL and implements the core services for WPF such as UI Element and visual from.

  4. It holds basic elements to be reused outside the WPF environment like Dispatcher objects and Dependency objects.

  5. None of the above


Correct Option: D
Explanation:

WindowsBase.dll portion of managed code holds these elements.

What are the benefit of using WPF in .Net framework?

  1. It provides low development and maintenance cost.

  2. Multiple design tools can be used to implement and share XAML mark-up.

  3. It provides, clear separation between the UI and logic.

  4. It provides easier understanding of Silverlight.

  5. All of the above


Correct Option: E
Explanation:

All of the above are the benefits of WPF.

Which of the following is/are false about Silverlight SDK?

  1. It is a set of tools, documentation, samples and templates for the web developers.

  2. It is a plug-in for browsers to support Silverlight enabled applications.

  3. Silverlight SDK is not really mandatory to develop Silverlight applications.

  4. Both (1) and (2)

  5. Both (1) and (3)


Correct Option: B
Explanation:

This statement is false about Silverlight SDK and Silverlight Runtime is a plug-in for browsers to support Silverlight enabled applications.

Which of the following is/are the correct statement(s) for the WindowsCodecs.dll layer in WPF architecture?

  1. This layer comes under the category of unmanaged layer in WPF architecture.

  2. It is used for imaging support in WPF applications like image processing.

  3. It holds the top level WPF elements.

  4. This layer is used to provide interface directly with DirectX and provide basic support for 2D and 3D surface.

  5. Both (1) and (2)


Correct Option: E
Explanation:

These are the correct statements about WindowsCodecs.dll layer in WPF architecture,

Which of the following is/are correct about App.xaml file?

  1. This file is the loader of Silverlight Application.

  2. In this file, we can declare your shared/global resources, styles and templates.

  3. The Application_Exit event can occur in App.xaml.cs file.

  4. All of the above

  5. Both (1) and (2)


Correct Option: D
Explanation:

All of the above are the correct statements.

Which of the following is/are applicable for Silverlight?

  1. Silverlight provides a simple user interface for developers.

  2. It provides high Compatibility.

  3. Silverlight offers cross-domain support for applications.

  4. All of the above

  5. Both (1) and (2)


Correct Option: D
Explanation:

These are the correct statements about Silverlight.

Which of the following is/are the features of Windows Presentation Foundation (WPF)?

  1. WPF is based on XAML.

  2. WPF is a Graphical subsystem which provides visually stunning user interfaces in Windows based applications.

  3. WPF can be used for data manipulation.

  4. All of the above

  5. Both (1) and (3)


Correct Option: D
Explanation:

All the above are the features of WPF.

Which of the following is/are the incorrect statements about Silverlight and WPF?

  1. Silverlight is a subset of WPF.

  2. WPF is used to develop enhanced graphics applications for desktop platform.

  3. WPF supports 3D graphics.

  4. WPF uses cross platform .Net runtimes.

  5. None of the above


Correct Option: D
Explanation:

WPF is only windows based.

Which of the following is/are the correct statement(s) for the milCore.dll layer in WPF architecture?

  1. milCore.dll layer comes under the category of managed layer in WPF architecture.

  2. This layer is used to provide interface directly with DirectX.

  3. It is used for imaging support in WPF applications like image processing.

  4. It holds the top level WPF elements.

  5. All of the above


Correct Option: B
Explanation:

milCore.dll layer is used to provide interface directly with DirectX and provide basic support for 2D and 3D surface.

Which of the following is/are the incorrect statement(S) about Silverlight version2?

  1. It supports manage code.

  2. .NET runtime is mandatory to run the Silverlight 2 applications.

  3. Silverlight 2 is only based on JavaScript and XAML.

  4. Silverlight 2 uses Dynamic Language Runtime (DLR) for compilation and execution of the dynamic scripting languages.

  5. Both (2) and (3)


Correct Option: C
Explanation:

This is false and it is not purely based on that. Silverlight 1 is purely based on JavaScript and XAML.

What is the role of UserControl in Page.xaml file?

  1. It holds all other UI elements in a .xaml file.

  2. It is used as a layout panel.

  3. All UI elements in a .xaml control must be placed within a layout panel in User control.

  4. All of the above

  5. Both (1) and (3)


Correct Option: A
Explanation:

UserControl is a high level control and holds all other UI elements in a xaml file.

Which of the following is/are applicable for the replacement of WinForms by WPF?

  1. WinForms does not provide better binding capabilities.

  2. WPF provides better UI customization and graphics.

  3. WPF provides clear separation between the UI and logic.

  4. All of the above

  5. Both (1) and (3)


Correct Option: D
Explanation:

These are the correct statements.

Which of the following content type is not possible in Application navigation security?

  1. Resource

  2. Site of origin

  3. Application code

  4. Content

  5. None of the above


Correct Option: E
Explanation:

All of the above are the content types in Application navigation security.

What is safe navigation in WPF security?

  1. In this navigation, it changes the content and location URL of a browser itself.

  2. In this navigation, it can be identified with a pack URI.

  3. Safe navigation is based on browser and application level.

  4. Safe navigation is not possible in WPF security.

  5. (1), (2) and (3) are correct


Correct Option: E
Explanation:

These are the correct statements.

Which of the following is/are false statement(s)?

  1. The default xaml file page.xaml is created on creating the new Silverlight project.

  2. The default content of page.xaml file does not have User control.

  3. The compiled assembly file of Silverlight application has the .xap extension.

  4. The compiled assembly file of Silverlight application does not have any .xap extension.

  5. Both (2) and (4)


Correct Option: E
Explanation:

These are the false statements.

Which of the following statement(s) determine the characteristics of WWF XAML?

  1. It describes the Windows Workflow Foundation content.

  2. WPF XAML is used for Silverlight applications.

  3. WPF XAML also have XPS XAML which defines an XML representation of electronic documents.

  4. All of the above

  5. Both (1) and (3)


Correct Option: E
Explanation:

These are the correct statements about WWF XAML.

Which of the following statement(s) is/are false?

  1. Silverlight applications are delivered to browsers in a text-based mark-up language.

  2. XAML is a compiled application.

  3. Silverlight supports video, audio and animations.

  4. Silverlight allows web developers to handle events from web pages.

  5. None of the above


Correct Option: B
Explanation:

This is false  as, XAML is a text based application while Flash is a compiled application.

Which of the following is/are correct about .xap file?

  1. It is a compressed output file.

  2. In .xap file, the AppManifest.xaml is responsible for compilation of output assembly of the Silverlight project.

  3. The .xap file is used to declaratively specify the user interface for Silverlight or WPF applications.

  4. All of the above

  5. Both (1) and (2)


Correct Option: E
Explanation:

These statements are correct.

- Hide questions