PRN221 Exam Questions with Correct
Answers
Choose the incorrect statement about the Basic Structure of XAML in the WPF
A. A WPF application contains only Windows or window form controls
B. In a XAML file, Window is a top-level window with the tag, whereas the Page is a browser-hosted
page with the <Page> tag
C. Apart from Window and Page, XAML has ResourceDictionary and Application root elements for
specifying the external dictionary and application definition
D. The window is one of commonly used root element which contains other elements
A
Which of the following properties of the Window Class can be used to get or set the data context for an
element when it participates in data binding?
A. DataContext
B. Opacity
C. WindowState
D. DataBinding
A
Which of the following commands can be used to run a WPF project named MyApp by .NET CLI tool?
A. dotnet run -p MyApp
B. dotnet -r --project MyApp
C. dotnet -r -p MyApp
D. dotnet run-project MyApp
A
,Choose the correct statement about WPF Types
A. All of the others
B. DependencyObject: provide features like change notification, support data bindings, attached
properties, etc
C. Visual: The Visual class defines all the properties required for rendering, clipping, transforming,
bounding,and hit test
D. DispatcherObject: WPF application uses Single-Thread Affinity (STA) model and therefore every UI
element is owned by a single thread
A
Which of the following statements related to the features of eXtensible Application Markup Language
(XAML)
in the WPF is True?
A. UI and Business Logic Separation: This is one of the greatest benefits of XAML. It separates design and
development from each other
B. Low User Experience: XAML files are simple XML format files, so transferring user interfaces between
platforms is difficult
C. Implement Styles for UI: XAML makes the development user interface much slower. It doesn't provide
features such as creating the layout, applying styles, and templates for the Ul application
D. None of the others
A
Choose the correct definition of MessagePack (protocol for encoding messages) supported by ASP.NET
Core SignalR.
A. MessagePack is an efficient binary serialization format. It lets you exchange data among multiple
languages like JSON. But it's faster and smaller.
B. MessagePack is a lightweight data-interchange format. It is easy for humans to read and write. It is
easy for machines to parse and generate.
,C. MessagePack is a computer data interchange format. It is a binary form for representing simple or
complex data structures including associative arrays, integer indexed arrays, and a suite of fundamental
scalar types.
D. None of the others.
A
The Hub class has a Context property that contains the properties with information about the
connection. To get the unique ID for the connection, assigned by SignalR. Which the property we can
choose in this case?
A. Connectionld
B. UserIdentifier
C. User
D. GetHttpContext
A
ASP.NET Core SignalR supports two protocols for encoding messages. Each protocol has serialization
configuration options. Please choose the correct protocols.
A. JSON and MessagePack
B. BSON and MessagePack
C. JSON and BSON
D. JSON and XML
A
Which of the following classes of the System.Threading.Tasks Namespace provides support for creating
and scheduling Task objects?
A. TaskFactory
B. Task
C. TaskScheduler
, D. TaskInit
A
Choose the correct statement about Serial Computing
A. All of the others
B. A problem is broken into a discrete series of instructions
C. Instructions are executed sequentially one after another
D. Only one instruction may execute at any moment in time
A
Choose the correct statement related to Mono-Processor Systems
A. The mono-processor systems use old-fashioned, classic computer architecture and were developed
by the outstanding mathematician, John von Neumann
B. The microprocessor receives data from file streams, executes the necessary processes, and sends the
results in an output file
C. The mono-processor system works with many users and many tasks running
D. None of the others
A
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. Synchronous multiprocessing (SNP)
D. All of the others
A
Answers
Choose the incorrect statement about the Basic Structure of XAML in the WPF
A. A WPF application contains only Windows or window form controls
B. In a XAML file, Window is a top-level window with the tag, whereas the Page is a browser-hosted
page with the <Page> tag
C. Apart from Window and Page, XAML has ResourceDictionary and Application root elements for
specifying the external dictionary and application definition
D. The window is one of commonly used root element which contains other elements
A
Which of the following properties of the Window Class can be used to get or set the data context for an
element when it participates in data binding?
A. DataContext
B. Opacity
C. WindowState
D. DataBinding
A
Which of the following commands can be used to run a WPF project named MyApp by .NET CLI tool?
A. dotnet run -p MyApp
B. dotnet -r --project MyApp
C. dotnet -r -p MyApp
D. dotnet run-project MyApp
A
,Choose the correct statement about WPF Types
A. All of the others
B. DependencyObject: provide features like change notification, support data bindings, attached
properties, etc
C. Visual: The Visual class defines all the properties required for rendering, clipping, transforming,
bounding,and hit test
D. DispatcherObject: WPF application uses Single-Thread Affinity (STA) model and therefore every UI
element is owned by a single thread
A
Which of the following statements related to the features of eXtensible Application Markup Language
(XAML)
in the WPF is True?
A. UI and Business Logic Separation: This is one of the greatest benefits of XAML. It separates design and
development from each other
B. Low User Experience: XAML files are simple XML format files, so transferring user interfaces between
platforms is difficult
C. Implement Styles for UI: XAML makes the development user interface much slower. It doesn't provide
features such as creating the layout, applying styles, and templates for the Ul application
D. None of the others
A
Choose the correct definition of MessagePack (protocol for encoding messages) supported by ASP.NET
Core SignalR.
A. MessagePack is an efficient binary serialization format. It lets you exchange data among multiple
languages like JSON. But it's faster and smaller.
B. MessagePack is a lightweight data-interchange format. It is easy for humans to read and write. It is
easy for machines to parse and generate.
,C. MessagePack is a computer data interchange format. It is a binary form for representing simple or
complex data structures including associative arrays, integer indexed arrays, and a suite of fundamental
scalar types.
D. None of the others.
A
The Hub class has a Context property that contains the properties with information about the
connection. To get the unique ID for the connection, assigned by SignalR. Which the property we can
choose in this case?
A. Connectionld
B. UserIdentifier
C. User
D. GetHttpContext
A
ASP.NET Core SignalR supports two protocols for encoding messages. Each protocol has serialization
configuration options. Please choose the correct protocols.
A. JSON and MessagePack
B. BSON and MessagePack
C. JSON and BSON
D. JSON and XML
A
Which of the following classes of the System.Threading.Tasks Namespace provides support for creating
and scheduling Task objects?
A. TaskFactory
B. Task
C. TaskScheduler
, D. TaskInit
A
Choose the correct statement about Serial Computing
A. All of the others
B. A problem is broken into a discrete series of instructions
C. Instructions are executed sequentially one after another
D. Only one instruction may execute at any moment in time
A
Choose the correct statement related to Mono-Processor Systems
A. The mono-processor systems use old-fashioned, classic computer architecture and were developed
by the outstanding mathematician, John von Neumann
B. The microprocessor receives data from file streams, executes the necessary processes, and sends the
results in an output file
C. The mono-processor system works with many users and many tasks running
D. None of the others
A
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. Synchronous multiprocessing (SNP)
D. All of the others
A