Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

PRN 221 P2 EXAM QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 3 out of 25 pages

PRN 221 P2 EXAM QUESTIONS AND ANSWERS...

Content preview

PRN 221 P2 EXAM QUESTIONS AND
ANSWERS

b - ANSWER Which of the following methods of the JsonSerialization
class can be used to convert a value of the specific type into a JSON
string, encoded as UTF-8 bytes?
a. None of the others
b. SerializeToUtf8Bytes()
c. Serialize8Bytes()
d. SerializeToUTF8()

c - ANSWER 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()

c - ANSWER 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

b - ANSWER 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
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

a - ANSWER 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.

c - ANSWER 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

a - ANSWER 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

a - ANSWER Which of the following is one of the serialization engines in
.NET?
a. XmlSerializer
b. ObjectSerializer
c. StreamSerializer
d. DataSerializer

a - ANSWER 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)
e. None of the others

c - ANSWER 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.

c - ANSWER 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
c. A class should have only a single responsibility
d. None of the others

b - ANSWER Suppose that you want to configure the root folder for
Razor Pages to be something other than the default. What the following
code should you put in ConfigureServices method of Startup.cs file?

a.
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
}

b.
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages().AddRazorPagesOptions(options => {
options.RootDirectory = "/Content";

Document information

Uploaded on
October 23, 2024
Number of pages
25
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown
$12.09

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
luzlinkuz
3.8
(328)
Sold
1596
Followers
852
Items
32260
Last sold
18 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions