Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can you change the default browser that Visual Studio uses when you start a web app? Question 1 options: Edit the Startup.cs file to

How can you change the default browser that Visual Studio uses when you start a web app?

Question 1 options:

Edit the Startup.cs file to specify the default browser

Press F12 and use the developer tools to specify the default browser

Select Browse With from the Start drop-down menu, hold down the Ctrl key, and select a browser

Select a browser from the Web Browser menu that's available from the Start drop-down menu

Question 2 (4 points)

Saved

Listen

Which of the following techniques does NOT run an app with debugging?

Question 2 options:

Click the Start button in the Standard toolbar

Double-click the HomeController.cs file

Press F5

Select Start Debugging from the Debug menu

Question 3 (4 points)

Listen

The Internal Server Error page is typically displayed

Question 3 options:

when a user runs a production app and it has syntax errors

when a user runs a production app and an exception occurs

during development when you run the app without debugging and an exception occurs

during development when you run the app with debugging and an exception occurs

Question 4 (4 points)

Saved

Listen

The Exception Helper dialog is displayed if you run an app

Question 4 options:

without debugging and it has syntax errors

without debugging and an exception occurs

with debugging and it has syntax errors

with debugging and an exception occurs

Question 5 (4 points)

Listen

When you run an app with debugging and it encounters a breakpoint, the app

Question 5 options:

enters break mode

stops debugging

logs a message to the Output window

executes the remaining lines in the current method

Question 6 (4 points)

Saved

Listen

Which Step command executes one statement at a time except for called methods?

Question 6 options:

Step Into

Step Over

Step Out

Step One

Question 7 (4 points)

Listen

Which Step command executes the remaining statements in the current method?

Question 7 options:

Step Into

Step Over

Step Out

Step One

Question 8 (4 points)

Listen

The third segment of the default route specifies an argument for the

Question 8 options:

id parameter of the specified action method

slug parameter of the specified action method

id parameter of the List action method

slug parameter of the List action method

Question 9 (4 points)

Listen

If you're using the default route, which action does the following URL call? https:/localhost:5001/customer/list

Question 9 options:

The Index action of the Home controller

The Index action of the Customer controller

The List action of the Home controller

The List action of the Customer controller

Question 10 (4 points)

Listen

If your app uses routes with the following patterns, which route do you need to code first in the Startup.cs file?

Question 10 options:

{controller=Home}/{action=Index}/{id?}

{controller}/{action}/{category}/page{page}

{controller}/{action}/{category}/page{page}/sort-by-{sortby}

Question 11 (4 points)

Listen

When you use attribute routing, the route specified by the attribute

Question 11 options:

can't use static segments

can't use the [controller] or [action] tokens

can't use a question mark (?) to specify optional segments

overrides any routes that are specified in the Startup.cs file

Question 12 (4 points)

Listen

Which of the following is NOT a best practice for creating URLs?

Question 12 options:

Use query string parameters whenever possible.

Use keywords to describe the page's content, not its implementation details.

Make your URLs easy for humans to understand and type.

Keep the URL as short as possible while still being descriptive and user-friendly.

Question 13 (4 points)

Listen

In an ASP.NET Core MVC app, you can organize the folders and files of the app by creating areas where each area has its own

Question 13 options:

controllers only

models only

controllers and views only

controllers, models, and views

Question 14 (4 points)

Listen

What does the following code represent? @{ string myName = "John"; ViewBag.Name = myName; }

Question 14 options:

A Razor expression

A Razor code block

A Razor foreach loop

A Razor if statement

Question 15 (4 points)

Listen

The C# conditional operator (? :) is used in Razor syntax to create

Question 15 options:

a switch statement

an if statement

a conditional expression

a Bootstrap CSS class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

2. What is the impact of information systems on organizations?

Answered: 1 week ago

Question

Evaluate the impact of technology on HR employee services.

Answered: 1 week ago