wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AG ASP API : 01 ASP.NET_Core_Web_API_and_HTTP_Pipeline

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.
The CLR provides…
a)
Web socket routing
b)
Multithreading
c)
Memory management
d)
UI rendering
2.
.NET Core is described as…
a)
Modular and cross-platform
b)
Deprecated
c)
Dependent on IIS
d)
Windows-only
3.
ASP.NET Core supports programming models such as…
a)
Web Pages, MVC, API
b)
Only Razor Pages
c)
Flash
d)
WPF only
4.
ASP.NET Web API is mainly used for…
a)
Desktop GUIs
b)
JSON/REST endpoints
c)
CSS components
d)
Local batch files
5.
Kestrel is…
a)
A logging tool
b)
A SQL engine
c)
A high-performance web server
d)
A reverse proxy
6.
Web Pages (.cshtml) give…
a)
Auto CSS generation
b)
DB migrations
c)
Fine HTML control
d)
Frontend routing
7.
Classical HTTP routing relied on…
a)
XML config & controller patterns
b)
React components
c)
Windows services
d)
Razor Pages
8.
ASP.NET Core routing is…
a)
Client-side only
b)
Middleware-driven
c)
SQL-driven
d)
File-based
9.
MVC stands for…
a)
Multi-Visual-Component
b)
Model-View-Controller
c)
Main-View-Cache
d)
Model-View-Client
10.
The ASP.NET Core pipeline combines…
a)
SQL + IIS
b)
MVC + Web API + Web Pages
c)
IIS + Chrome
d)
DOM + CSS
11.
Middleware is executed…
a)
Only on POST
b)
Randomly
c)
Sequentially
d)
Only on errors
12.
Built-in middleware includes…
a)
Static files, routing, error handling
b)
IIS proxy only
c)
HTTPS redirection only
d)
JSON serializer
13.
Middleware order matters because…
a)
It changes SQL indexes
b)
It affects request processing flow
c)
It affects CSS
d)
It changes Razor compilation
14.
Routing determines…
a)
Browser choice
b)
CSS selectors
c)
Which endpoint handles a request
d)
DB engine
15.
A minimal API endpoint is defined using…
a)
app.MapGet / MapPost
b)
controller.Run()
c)
UseRouter()
d)
app.Use()
16.
Minimal APIs are ideal for…
a)
SQL administration
b)
Large enterprise UI
c)
Small services & prototypes
d)
Video streaming
17.
Route constraints ensure…
a)
CSS consistency
b)
Encryption
c)
Type safety
d)
Larger payloads
18.
DI allows services to be…
a)
Injected instead of manually created
b)
Stored in cookies
c)
Embedded in views
d)
Loaded from SQL
19.
ASP.NET Core DI registrations occur…
a)
Only in controllers
b)
After builder.Build()
c)
Inside views
d)
Before builder.Build()
20.
AddScoped services are created…
a)
Only on POST
b)
Every millisecond
c)
Once per request
d)
Once per app
21.
Logging is used to…
a)
Record app behavior
b)
Render HTML
c)
Style UI
d)
Replace unit tests
22.
ILogger is…
a)
A CSS formatter
b)
A DB driver
c)
An HTTP handler
d)
The built-in logging interface
23.
Structured logging means…
a)
Encrypting logs
b)
Using key/value metadata
c)
Compressing logs
d)
Using tables
24.
The /logtest endpoint example logs…
a)
HTML
b)
A timestamped message
c)
DB schema
d)
JSON schema
25.
The HTTP pipeline begins with…
a)
React rendering
b)
IIS routing
c)
A chain of middleware
d)
Controller creation
26.
Static file middleware must run…
a)
At the end
b)
After MVC
c)
Before routing
d)
After logging
27.
Minimal APIs return…
a)
JSON or plain strings
b)
SQL queries
c)
CSS bundles
d)
HTML always
28.
Dependency Injection improves…
a)
Browser caching
b)
Coupling
c)
Compilation speed
d)
Testability & maintainability
29.
Logging best practices include…
a)
Using only console logs
b)
Logging passwords
c)
Avoid sensitive data
d)
Disabling logs
30.
Debugging ASP.NET Core apps can be done using…
a)
Excel
b)
IIS only
c)
Visual Studio + Edge
d)
PowerPoint