PRN221_last| questions and answers
1. b: Which of the following methods of the JsonSerialization class can be used to convert a
value of the speciêed type into a JSON string,encoded as UTF-8 bytes?
a. None of the others
b. SerializeToUtf8Bytes()
c. Serialize8Bytes()
d. SerializeToUTF8()
2. c: Which of the following methods of the XmlSerializer class returns an object used to read
the XML document to be serialized?
a. CreateObject()
b. GetReader()
c. CreateReader()
d. GetObjectReader()
3. c: Choose the incorrect statement about Uniform Resource Identifi er (URI)
a. The Uri class in the System namespace performs just this division, exposing a property for
each element
b. A URI (Uniform Resource Identifi er) is a specially formatted string that describes a resource
on the internet or a LAN, such as a
web page, fi le, or email address
c. URI is a subset of Uniform Resource Location (URL) that describes the network address or
location where the source is available
d. A URI can be broken up into a series of elements—typically, scheme, authority, and path
4. b: Choose the correct statement about PresentationFramework.dll assembly in the WPF
Architecture
a. It provides basic types like UIElement and Visual. The UIElement defi nes the actions and
element layout properties and provides
classes to override them if required
, PRN221_last| questions and answers
b. It provides the basic types to build a WPF application, such as windows, controls, shapes,
media, documents, animation, data
bindings, style, etc
c. None of the others
d. It holds the WPF basic types like DependencyProperty, DependencyObject,
DispatcherObject, and other types
5. a: What is Windows Presentation Foundation (WPF)?
a. WPF is a UI framework that creates desktop client applications
b.WPF is a UI framework that creates web applications
c. WPF is a UI framework that creates mobile applications
d. WPF is a UI framework that creates API.
, PRN221_last| questions and answers
6. c: Choose the correct statement about Windows Presentation Foundation (WPF)
a. The WPF is only supported by the .NET Core
b.The WPF is only supported by the both .NET Framework and .NET Core
c. The WPF supports a broad set of application development features, including an application
model, resources, controls, graphics,
layout, data binding, documents, and security
d.WPF uses the Extensible Markup Language (XML) to provide a declarative model for
application programming
7. a: Which of the following commands can be used to create a WPF application named
MyApp by .NET CLI tool?
a. dotnet new wpf -n MyApp
b. dotnet create wpf -n MyApp
c. dotnet new wpf MyApp
d. dotnet create wpf -l MyApp
8. a: Which of the following is one of the serialization engines in .NET?
a. XmlSerializer
b. ObjectSerializer
c. StreamSerializer
d. DataSerializer
9. a: U04-Q003 Which of the following is one of the basic procedures to distribute tasks in
systems with multiple processors?
a. Symmetrical multiprocessing (SMP)
b. Asynchronous multiprocessing (AMP)
c. All of the others
d. Synchronous multiprocessing (SNP)
, PRN221_last| questions and answers
e. None of the others
10.c: Choose the main purpose of the Razor Pages PageModel class.
a. To provide the easy way to reduce the code for the UI components.
b.To provide the easy way to understand the UI components with processing code logic for the
page.
c. To provide clear separation between the UI layer (the .cshtml view fi le) and processing
logic for the page.
d. To provide clear separation between the UI layer (the .cshtml.cs view fi le) and processing
logic for the page.
11.c: Which of the following statements related to the Single Responsibility Principle is True?
a. A class should be inherited from many other classes
b. A class should be implemented from multiple interfaces
1. b: Which of the following methods of the JsonSerialization class can be used to convert a
value of the speciêed type into a JSON string,encoded as UTF-8 bytes?
a. None of the others
b. SerializeToUtf8Bytes()
c. Serialize8Bytes()
d. SerializeToUTF8()
2. c: Which of the following methods of the XmlSerializer class returns an object used to read
the XML document to be serialized?
a. CreateObject()
b. GetReader()
c. CreateReader()
d. GetObjectReader()
3. c: Choose the incorrect statement about Uniform Resource Identifi er (URI)
a. The Uri class in the System namespace performs just this division, exposing a property for
each element
b. A URI (Uniform Resource Identifi er) is a specially formatted string that describes a resource
on the internet or a LAN, such as a
web page, fi le, or email address
c. URI is a subset of Uniform Resource Location (URL) that describes the network address or
location where the source is available
d. A URI can be broken up into a series of elements—typically, scheme, authority, and path
4. b: Choose the correct statement about PresentationFramework.dll assembly in the WPF
Architecture
a. It provides basic types like UIElement and Visual. The UIElement defi nes the actions and
element layout properties and provides
classes to override them if required
, PRN221_last| questions and answers
b. It provides the basic types to build a WPF application, such as windows, controls, shapes,
media, documents, animation, data
bindings, style, etc
c. None of the others
d. It holds the WPF basic types like DependencyProperty, DependencyObject,
DispatcherObject, and other types
5. a: What is Windows Presentation Foundation (WPF)?
a. WPF is a UI framework that creates desktop client applications
b.WPF is a UI framework that creates web applications
c. WPF is a UI framework that creates mobile applications
d. WPF is a UI framework that creates API.
, PRN221_last| questions and answers
6. c: Choose the correct statement about Windows Presentation Foundation (WPF)
a. The WPF is only supported by the .NET Core
b.The WPF is only supported by the both .NET Framework and .NET Core
c. The WPF supports a broad set of application development features, including an application
model, resources, controls, graphics,
layout, data binding, documents, and security
d.WPF uses the Extensible Markup Language (XML) to provide a declarative model for
application programming
7. a: Which of the following commands can be used to create a WPF application named
MyApp by .NET CLI tool?
a. dotnet new wpf -n MyApp
b. dotnet create wpf -n MyApp
c. dotnet new wpf MyApp
d. dotnet create wpf -l MyApp
8. a: Which of the following is one of the serialization engines in .NET?
a. XmlSerializer
b. ObjectSerializer
c. StreamSerializer
d. DataSerializer
9. a: U04-Q003 Which of the following is one of the basic procedures to distribute tasks in
systems with multiple processors?
a. Symmetrical multiprocessing (SMP)
b. Asynchronous multiprocessing (AMP)
c. All of the others
d. Synchronous multiprocessing (SNP)
, PRN221_last| questions and answers
e. None of the others
10.c: Choose the main purpose of the Razor Pages PageModel class.
a. To provide the easy way to reduce the code for the UI components.
b.To provide the easy way to understand the UI components with processing code logic for the
page.
c. To provide clear separation between the UI layer (the .cshtml view fi le) and processing
logic for the page.
d. To provide clear separation between the UI layer (the .cshtml.cs view fi le) and processing
logic for the page.
11.c: Which of the following statements related to the Single Responsibility Principle is True?
a. A class should be inherited from many other classes
b. A class should be implemented from multiple interfaces