PRN222 Exam Questions with Correct
Answers
SignalR |provides |two |models |for |communicate |between |clients |and |severs: |Persistent |Connections,
|Hubs. |Choose |the |correct |information |about |Persistent |Connections.
A. |Persistent |Connections |provide |direct |access |to |a |low-level |communication |protocol |that |signalR
|provides. |Each |client |connection |to |a |server |is |identified |by |a |connectionID.
B. |Persistent |Connections |provide |a |High-level |API |for |the |client |and |server |to |call |each |other's
|method. |It |will |be.COM |very |familiar |to |those |developers |who |have |worked |on |remote |invocation
|APIs.
C. |If |you |have |multiple |types |of |messages |that |you |want |to |send |between |a |server |and |a |client |then
|it |is |recommended |to |use |Persistent |Connections |so |you |do |not |need |to |do |your |own |dispatching.
D. |None |of |the
|others.
A
To |enable |the |MessagePack |Hub |Protocol |on |the |server, |install |the |Microsoft.AspNetCore. |SignalR.
|Protocols.MessagePack |package |in |your |app. |Choose |the |correct |code |to |enable |MessagePack |for
|SignalR |in |Startup.ConfigureServices |method.
A. |services.AddSignalR().AddMessagePackProtocol();
B. |services.AddMessage |PackProtocol().AddSignalR();
C. |services.AddSignalR(). |EnableMessage |Pack |Protocol();
D. |services. |Enable |Message |PackProtocol().AddSignalR();
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
|
What |is |"real-time |web" |functionality?
A. |It |is |the |ability |to |have |your |server-side |code |push |content |to |the |connected |clients |as |it
|happens, |in |real-time.B. |It |is |the |ability |to |have |your |client-side |code |push |content |to |the
|connected |clients |as |it |happens, |in |real-time.
C. |It |is |the |ability |to |have |your |both |server-side |and |client |code |push |content |to |the |connected
|clients |as |it |happens,
in |real-time.
D. |It |is |the |ability |to |have |your |both |server-side |and |client |code |pull |content |from |the |connected
|clients, |in |real-time.
A
Choose |the |option |is |not |a |feature |of |SignalR |for |ASP.NET |Core.
A. |Handles |connection |management |automatically.
B. |Sends |messages |to |all |connected |clients |simultaneously.
C. |Do |not |send |messages |to |specific |clients |or |groups |of |clients.
D. |Scales |to |handle |increasing |traffic.
C
|
In |the |case |working |ASP.NET |SignalR |with |JavaScript |client |library, |which |the |following |code |to |create
|and |start |a |connection?
A. |var |connection |= |new |signalR.HubConnectionBuilder().withUrl("/chatHub").build();
B. |var |connection |= |new |signalR.Builder().withUrl("/chatHub").build();
C. |var |connection |= |new |signalR.HubConnection |Builder().withUrl("/chatHub").create();
,D. |var |connection |= |new |signalR. |HubBuilder().withUrl("/chatHub").build();
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 |-I |MyApp
A
|
Which |of |the |following |statements |related |to |System.Xaml.dll |is |True?
A. |This |assembly |provides |namespaces |that |allow |us |to |program |against |a |XAML |document |at
|runtime. |By |and |large, |this |library |is |useful |only |if |we |are |authoring |WPF |support |tools |or |need
|absolute |control |over |XAML |at |Runtime |B. |This |assembly |defines |types |that |constitute |the
|infrastructure |of |the |WPF |API, |including |those |representing |WPF |threading |types, |security |types,
|various |type |converters, |and |support |for |dependency |properties |and |routed |Events |C. |This |assembly
|contains |a |majority |of |the |WPF |controls, |the |Application |and |Window |classes, |support |for |interactive
|2D |graphics, |and |numerous |types |used |in |data |binding
D. |All |of |the |others
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 |GOM
, D. |DispatcherObject: |WPF |application |uses |Single-Thread |Affinity |(STA) |model |and |therefore |every |UI
|element |is |owned |by
a |single |thread
A
|
Choose |the |correct |statement |about |System.Windows. |Data |in |the |WPF |Namespaces
A. |This |is |namespace |contains |types |to |work |with |the |WPF |data-binding |engine, |as |well |as |support
|for |data-binding
templates
B. |This |is |namespace |defines |classes |that |allow |us |to |render |interactive |2D |graphics |that
|automatically |respond |to |mouse
input |C. |This |is |namespace |defines |a |number |of |types |that |allow |XAML |markup |to |be |parsed |and
|processed |programmatically
D. |None |of |the |others
A
|
Choose |the |correct |statement |about |Windows |Presentation |Foundation |(WPF)
A. |The |WPF |supports |a |broad |set |of |application |development |features, |including |an |application
|model, |resources,
controls, |graphics, |layout, |data |binding, |documents, |and |security
B. |The |WPF |is |only |supported |by |the.NET |Core
C. |WPF |uses |the |Extensible |Markup |Language |(XML) |to |provide |a |declarative |model |for |application
|programming |GOM
D. |All |of |the |others
A
|
Choose |the |correct |statement |about |PresentationFramework.dll |assembly |in |the |WPF |Architecture
Answers
SignalR |provides |two |models |for |communicate |between |clients |and |severs: |Persistent |Connections,
|Hubs. |Choose |the |correct |information |about |Persistent |Connections.
A. |Persistent |Connections |provide |direct |access |to |a |low-level |communication |protocol |that |signalR
|provides. |Each |client |connection |to |a |server |is |identified |by |a |connectionID.
B. |Persistent |Connections |provide |a |High-level |API |for |the |client |and |server |to |call |each |other's
|method. |It |will |be.COM |very |familiar |to |those |developers |who |have |worked |on |remote |invocation
|APIs.
C. |If |you |have |multiple |types |of |messages |that |you |want |to |send |between |a |server |and |a |client |then
|it |is |recommended |to |use |Persistent |Connections |so |you |do |not |need |to |do |your |own |dispatching.
D. |None |of |the
|others.
A
To |enable |the |MessagePack |Hub |Protocol |on |the |server, |install |the |Microsoft.AspNetCore. |SignalR.
|Protocols.MessagePack |package |in |your |app. |Choose |the |correct |code |to |enable |MessagePack |for
|SignalR |in |Startup.ConfigureServices |method.
A. |services.AddSignalR().AddMessagePackProtocol();
B. |services.AddMessage |PackProtocol().AddSignalR();
C. |services.AddSignalR(). |EnableMessage |Pack |Protocol();
D. |services. |Enable |Message |PackProtocol().AddSignalR();
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
|
What |is |"real-time |web" |functionality?
A. |It |is |the |ability |to |have |your |server-side |code |push |content |to |the |connected |clients |as |it
|happens, |in |real-time.B. |It |is |the |ability |to |have |your |client-side |code |push |content |to |the
|connected |clients |as |it |happens, |in |real-time.
C. |It |is |the |ability |to |have |your |both |server-side |and |client |code |push |content |to |the |connected
|clients |as |it |happens,
in |real-time.
D. |It |is |the |ability |to |have |your |both |server-side |and |client |code |pull |content |from |the |connected
|clients, |in |real-time.
A
Choose |the |option |is |not |a |feature |of |SignalR |for |ASP.NET |Core.
A. |Handles |connection |management |automatically.
B. |Sends |messages |to |all |connected |clients |simultaneously.
C. |Do |not |send |messages |to |specific |clients |or |groups |of |clients.
D. |Scales |to |handle |increasing |traffic.
C
|
In |the |case |working |ASP.NET |SignalR |with |JavaScript |client |library, |which |the |following |code |to |create
|and |start |a |connection?
A. |var |connection |= |new |signalR.HubConnectionBuilder().withUrl("/chatHub").build();
B. |var |connection |= |new |signalR.Builder().withUrl("/chatHub").build();
C. |var |connection |= |new |signalR.HubConnection |Builder().withUrl("/chatHub").create();
,D. |var |connection |= |new |signalR. |HubBuilder().withUrl("/chatHub").build();
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 |-I |MyApp
A
|
Which |of |the |following |statements |related |to |System.Xaml.dll |is |True?
A. |This |assembly |provides |namespaces |that |allow |us |to |program |against |a |XAML |document |at
|runtime. |By |and |large, |this |library |is |useful |only |if |we |are |authoring |WPF |support |tools |or |need
|absolute |control |over |XAML |at |Runtime |B. |This |assembly |defines |types |that |constitute |the
|infrastructure |of |the |WPF |API, |including |those |representing |WPF |threading |types, |security |types,
|various |type |converters, |and |support |for |dependency |properties |and |routed |Events |C. |This |assembly
|contains |a |majority |of |the |WPF |controls, |the |Application |and |Window |classes, |support |for |interactive
|2D |graphics, |and |numerous |types |used |in |data |binding
D. |All |of |the |others
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 |GOM
, D. |DispatcherObject: |WPF |application |uses |Single-Thread |Affinity |(STA) |model |and |therefore |every |UI
|element |is |owned |by
a |single |thread
A
|
Choose |the |correct |statement |about |System.Windows. |Data |in |the |WPF |Namespaces
A. |This |is |namespace |contains |types |to |work |with |the |WPF |data-binding |engine, |as |well |as |support
|for |data-binding
templates
B. |This |is |namespace |defines |classes |that |allow |us |to |render |interactive |2D |graphics |that
|automatically |respond |to |mouse
input |C. |This |is |namespace |defines |a |number |of |types |that |allow |XAML |markup |to |be |parsed |and
|processed |programmatically
D. |None |of |the |others
A
|
Choose |the |correct |statement |about |Windows |Presentation |Foundation |(WPF)
A. |The |WPF |supports |a |broad |set |of |application |development |features, |including |an |application
|model, |resources,
controls, |graphics, |layout, |data |binding, |documents, |and |security
B. |The |WPF |is |only |supported |by |the.NET |Core
C. |WPF |uses |the |Extensible |Markup |Language |(XML) |to |provide |a |declarative |model |for |application
|programming |GOM
D. |All |of |the |others
A
|
Choose |the |correct |statement |about |PresentationFramework.dll |assembly |in |the |WPF |Architecture