Search Header Logo

CPT 231 Midterm Part III

Authored by Reza Naqvi

Computers

University

Used 4+ times

CPT 231 Midterm Part III
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

If you’re using the default route, which action does the following URL call?

https:/localhost:5001/

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

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In the following URL pattern, which part is static?

{controller}/{action}/{cat}/Page{num}/{sort?}

{cat}

Page

Page{num}

{sort?}

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which pattern specifies the default route for an ASP.NET Core MVC app?

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

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

{controller=Customer}/{action=List}/{id?}/{slug?}

{controller=Customer}/{action=List}/{id?}

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

If you’re using the default route, which action does the following URL call?

https:/localhost:5001/customer/list

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

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

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

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 Program.cs file

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

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

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.

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

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

controllers only

models only

controllers and views only

controllers, models, and views

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?