CPT 231 Midterm Part III

CPT 231 Midterm Part III

University

50 Qs

quiz-placeholder

Similar activities

AMAD - 754 Q_BANK by Manender Dutt

AMAD - 754 Q_BANK by Manender Dutt

University

50 Qs

Cpe 378 - MIDTERM EXAM

Cpe 378 - MIDTERM EXAM

University

50 Qs

Network & Telecommunication (101-150)

Network & Telecommunication (101-150)

University

47 Qs

UJIAN MID SEMESTER 1 XII RPL PEMROGRAMAN WEB DAN PERANGKAT BERGE

UJIAN MID SEMESTER 1 XII RPL PEMROGRAMAN WEB DAN PERANGKAT BERGE

University

50 Qs

ABHYUDAYA'24 ROUND-1

ABHYUDAYA'24 ROUND-1

University

50 Qs

TLJ_11_SAT_2025

TLJ_11_SAT_2025

11th Grade - University

45 Qs

SA1  CodeIgniter Quiz

SA1 CodeIgniter Quiz

University

45 Qs

JSP

JSP

University

47 Qs

CPT 231 Midterm Part III

CPT 231 Midterm Part III

Assessment

Quiz

Computers

University

Easy

Created by

Reza Naqvi

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?