
CPT 231 Midterm Part III
Authored by Reza Naqvi
Computers
University
Used 4+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
50 questions
ict 1-50
Quiz
•
University
50 questions
ICT 151-200
Quiz
•
University
50 questions
CS8691 - Artifical Intelligence - IAT #1
Quiz
•
University
53 questions
System Analysis and Design (Prelim Exam)
Quiz
•
University
55 questions
Microsoft Azure Fundamentals AZ-900 ENG #1
Quiz
•
University - Professi...
53 questions
Modules 1-2
Quiz
•
University
50 questions
Test 4
Quiz
•
University
50 questions
Kiến thức về xử lý mảng 1 chiều trong C++
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University