Professional Documents
Culture Documents
Quiz 2 Spring 2022 Page 2 of 2
Quiz 2 Spring 2022 Page 2 of 2
Quiz 2 Spring 2022 Page 2 of 2
Question 11
Answer saved
Marked out of 1.00
a. Maintenance
b. Deployment
c. Registration
d. Implementation
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 1/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 12
Answer saved
Marked out of 1.00
a. Constructor Injection
c. Method Injection
e. Property Injection
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 2/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 13
Answer saved
Marked out of 1.00
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().AddRazorPagesRootDirectory(options
=> {
options.RootDirectory =
"/Content";
});
}
b.
public void
ConfigureServices(IServiceCollection services)
{
services.AddRazorPages().AddRazorPagesOptions("/Content");
}
d. public void
ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 3/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Clear my choice
Question 14
Answer saved
Marked out of 1.00
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 4/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 15
Answer saved
Marked out of 1.00
a. public void
ConfigureServices (IServiceCollection services)
{
// ...
services.AddSignalR();
}
public void
Configure(IApplicationBuilder app, HostingEnvironment env)
{
// ...
app.UseAuthentication();
app.UseMvc();
app.UseSignalR (builder =>
{
builder.MapHub<ChatHubClass>("/chat");
});
}
b.
public void
ConfigureServices (IServiceCollection services)
{
// ...
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 5/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
services.AddSignalR().Start();
}
public void
Configure(IApplicationBuilder app, HostingEnvironment env)
{
// ...
app.UseAuthentication();
app.UseMvc();
app.UseSignalR (builder =>
{
builder.MapHub< ChatHubClass
>("/chat").Start();
});
}
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 6/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 16
Answer saved
Marked out of 1.00
b. It is a design principle
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 7/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 17
Answer saved
Marked out of 1.00
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 file)
and processing logic for the page.
d. To provide clear
separation between the UI layer (the .cshtml.cs view file) and processing logic
for the page.
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 8/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 18
Answer saved
Marked out of 1.00
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 9/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 19
Answer saved
Marked out of 1.00
SignalR provides two models for communicate between clients and severs:
Persistent Connections, Hubs. Choose the correct
information about Persistent
Connections.
b. 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.
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 10/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
Question 20
Answer saved
Marked out of 1.00
a.
if (!ModelState.IsValid)
{
return Page();
}
b. if
(!ModelState.IsCorrect)
{
return Page();
}
c. if
(!ModelState().IsValid())
{
return Page();
}
d. if (!ModelState.IsTrue)
{
return Page();
}
Clear my choice
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 11/12
3/16/22, 11:56 AM Quiz 2 Spring 2022 (page 2 of 2)
https://lms-hcmuni.fpt.edu.vn/mod/quiz/attempt.php?attempt=179605&cmid=11457&page=1 12/12