You are on page 1of 6

3/28/23, 7:49 AM quiz 4 (page 1 of 4)

Question 1
Notyet answered
Marked out of 1.00

Choose the correct information about Dependency Injection using Method Injection
Pattern

Oa
Ob.
Oc
Od.
Oe.

When a dependency can vary with each method call, we can supply it via a method
parameter.
None of the others.

All of the others.

Allows the caller to provide operation-specific context

Limited applicability

Question 2

Notyet answered
Marked out of 1.00

Choose the correct anwser for Symmetrical multiprocessing (SMP).

Oa

Ob.
Oxc
Od.

Usually, one processor acts as the main processor. lt works as a manager and is in
charge of distributing the tasks to the other
available processors, using different kinds of algorithms for this purpose

All of the others


None of the others

Any available processor or core can execute tasks. The most used and efficient one
is n-wWay symmetrical multiprocessing,
where n is the number of installed processors. With this procedure, each processor
can execute a task isolated from the rest
and also when a particular software is not optimized for multiprocessing systems

https://Ims-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=475226&cmid=32841

1/6
3/28/23, 7:49 AM quiz 4 (page 1 of 4)

Question 3
Not yet answered
Marked out of 1.00

Choose the correct statement about eXtensible Application Markup Language (XAML) in
the WPF

O a.. XAML enables a workflow where separate parties can work on the UI and the
logic of an app, using potentially different tools
Ob. XAML directly represents the instantiation of objects in a specific set of
backing types defined in assemblies
Oc All of the others

O d. XAML is a declarative markup language. As applied to the .NET Core programming


model, XAML simplifies creating a UI for a
.NET Core app

Question 4
Notyet answered
Marked out of 1.00

Choose the correct statement about PresentationFramework.dll assembly in the WPF


Architecture

O a. Itprovides basic types like UlElernent and Visual. The UlElement defines the
actions and element layout properties and
provides classes to override them if required

Ob. None of the others

Oc. Itprovides the basic types to build a WPF application, sụuch as windows,
controls, shapes, media, documents, animation, data
bindings, style, etc

O. d. Itholds the WPF basic types like DependencyProperty, DependencyObject,


DispatcherObject, and other types

https://Ims-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=475226&cmid=32841

2/6
3/28/23, 7:49 AM quiz 4 (page 1 of 4)

Question 5
Not yet answered
Marked out of 1.00

What is not a role of System.Threading.Tasks Namespace in Parallel Programming?

O a.. Provides types that simplify the work of writing concurrent and asynchronous
code
Ob. None of the others
Oc All of the others

O d. The main types are Task which represents an asynchronous operation that can be
waited on and cancelled, and
Task&lIt;TResult>, which is a task that can return a value

O e. The TaskFactory class provides static methods for creating and starting tasks,
and the TaskScheduler class provides the default
thread scheduling infrastructure

Question 6
Notyet answered
Marked out of 1.00

Classes in WPF are divided into four different types:

O a.. UlElement, LayoutElement, ContentElement, FrameworkContentElement


Ob. UlElement, FrameworkElement, ContentElenent, MenuElement

Oc UlElement, FrameworkElement, ContentElement, FrameworkContentElement


O d. UlElement, ControlElement, ContentElement, FrameworkControlElement

https://Ims-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=475226&cmid=32841 3/6
3/28/23, 7:49 AM quiz 4 (page 1 of 4)

Question 7
Not yet answered
Marked out of 1.00

ASP.NET Core SignalR supports two protocols for encoding messages. Each protocol
has serialization configuration options. Please
choose the correct protocols.

O a.. JSON and BSON

Ob. BSON and MessagePack


Oc JSONandXML

O d. JSON and MessagePack

Question 8
Notyet answered
Marked out of 1.00

Choose the main purpose of the Razor Pages PageModel class.

O3. To provide the easy way to understand the UI components with processing code
logic for the page.

Ob. Toprovide the easy way to reduce the code for the UI components.

Oc Toprovide clear separation between the UI layer (the .cshtml view file) and
processing logic for the page.

Ođ To provide clear separation between the UI layer (the .cshtml.cs view file) and
processing logic for the page.

https://Ims-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=475226&cmid=32841 4/6
3/28/23, 7:49 AM quiz 4 (page 1 of 4)

Question 9
Not yet answered
Marked out of 1.00

Choose the namespace which supports multithreading programming?

Oa. All of the above


Ob. System.Ling
Oc System.Threading
Od. System.net

Question 10
Not yet answered
Marked out of 1.00

Which of the following statements related to Task Parallel Library (TPL) is False?

O a.. None of the others


O.b. The Task Parallel Library (TPL) is a set of public types and APIs in the
System.TPL and System.Threading.Tasks namespaces

Oc Byusing TPL, we can maximize the performance of our code while focusing on the
work that our program is designed to
accomplish

O. d. All of the others

https://Ims-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=475226&cmid=32841 5/6
3/28/23, 7:49 AM quiz 4 (page 1 of 4)

https://Ims-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=475226&cmid=32841 6/6

You might also like