C# - C Sharp: PRN222-BL5-PT2


Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên

(nhấn nút 'Result' để biết kết quả)

Q1: What is Razor Pages primarily used for?
Desktop apps
Page-based web development
Database management
Mobile apps

Q2: Which file extension is used for Razor Pages?
.cs
.html
.cshtml
.razor

Q3: What is the code-behind file for Razor Pages?
.cshtml.cs
.razor.cs
.html.cs
.page.cs

Q4: Which directive is used to define a Razor Page?
@page
@model
@view
@route

Q5: What is PageModel?
UI component
Backend logic class
Database entity
Middleware

Q6: Which method handles GET requests in Razor Pages?
OnPost()
OnGet()
OnPut()
OnDelete()

Q7: How do you bind form data in Razor Pages?
@bind
[BindProperty]
@model
@inject

Q8: What does @model do?
Inject service
Define model type
Create route
Render HTML

Q9: What is TempData used for?
Permanent storage
Short-lived data
Session storage
File storage

Q10: Which tag helper is used for navigation?
asp-controller
asp-action
asp-page
asp-route

Q11: What is routing in Razor Pages based on?
Controller
Folder structure
Database
API

Q12: Which attribute binds property to form input?
[Bind]
[BindProperty]
[Inject]
[FromBody]

Q13: What is Layout page?
Database
Shared UI template
Controller
Middleware

Q14: Which file defines layout?
_Layout.cshtml
Layout.cs
appsettings.json
Program.cs

Q15: What is partial view?
Full page
Reusable UI piece
Controller
Model

Q16: What is Blazor?
Database
Web UI framework
API tool
Compiler

Q17: Which language is used in Blazor?
Java
Python
C#
PHP

Q18: What file extension is used in Blazor components?
.cshtml
.razor
.html
.js

Q19: What is @code block?
HTML section
C# logic block
CSS block
API block

Q20: What is Blazor Server?
Runs on client
Runs on server
Runs on database
Runs offline

Q21: What is Blazor WebAssembly?
Server-side
Desktop
API
Client-side

Q22: What is component in Blazor?
Database
Reusable UI
Thread
File

Q23: What is data binding in Blazor?
Static data
Sync UI and data
File binding
API call

Q24: Which directive binds value?
@model
@bind
@page
@inject

Q25: What is event handling?
Database action
UI interaction
File access
Routing

Q26: What does @inject do?
Routing
Inject service
Bind data
Render UI

Q27: What is StateHasChanged()?
Reload page
Update UI
Delete state
Bind data

Q28: What is lifecycle method?
Database method
Component lifecycle handler
API method
Thread method

Q29: Which method runs after render?
OnInit
OnAfterRender
OnStart
OnLoad

Q30: What is cascading parameter?
Global variable
Parent-to-child data
API data
Static value

Q31: What is SignalR?
Database
Real-time framework
UI tool
Compiler

Q32: What does SignalR enable?
File upload
Real-time updates
Database queries
Routing

Q33: What is Hub in SignalR?
Database
Communication endpoint
File
Thread

Q34: Which protocol does SignalR use?
HTTP only
WebSockets (preferred)
FTP
SMTP

Q35: What is WebSocket?
One-way communication
Full-duplex communication
File transfer
Email protocol

Q36: What is client-server communication?
File sharing
Data exchange
Routing
UI rendering

Q37: What is broadcast in SignalR?
Send to one client
Send to all clients
Save data
Delete data

Q38: What is group in SignalR?
Database table
Group of clients
Thread pool
File system

Q39: What is connection ID?
File ID
Unique client ID
Database key
Route

Q40: What is long polling?
Short request
Continuous polling
File transfer
Static data

Q41: What is fallback transport?
Backup protocol
Main protocol
Database
API

Q42: What is hub method?
UI method
Server method callable by client
DB method
Thread method

Q43: What is client method?
Server call
Method on client
DB call
File call

Q44: What is real-time app example?
Static page
Chat app
File system
Compiler

Q45: What is persistent connection?
Temporary
Long-lived connection
File-based
Static

Q46: What is Worker Service?
UI app
Background service
Database
API

Q47: Which interface is used for background tasks?
IWorker
IHostedService
IService
ITask

Q48: What method starts service?
Run()
StartAsync()
Begin()
Execute()

Q49: What method stops service?
StopAsync()
End()
Finish()
Close()

Q50: What is BackgroundService class?
Base class
UI class
DB class
Thread class

Q51: Which method runs continuously?
ExecuteAsync()
RunAsync()
StartAsync()
Loop()

Q52: What is cancellation token used for?
Start task
Stop task
Create thread
Bind data

Q53: What is hosted service?
Web page
Background task
Database
UI

Q54: What is scheduling?
File access
Task timing
Routing
Binding

Q55: Which method delays execution?
Thread.Sleep
Task.Delay
Wait
Pause

Q56: What is logging in worker service?
UI
Track execution
Database
API

Q57: What is dependency injection used for here?
UI
Inject services
File
Routing

Q58: What is long-running task?
Short task
Continuous task
UI task
DB task

Q59: What is service lifetime here?
Object scope
Memory
CPU
Thread

Q60: What is graceful shutdown?
Force stop
Safe stop
Crash
Restart

(Ghi chú: Phần câu hỏi Qi có màu Green thể hiện đáp án đúng)

(Ghi chú: Phần câu hỏi Qi có màu Green thể hiện đáp án đúng)
» Tiếp: Bài làm mẫu 1
« Trước: Practical 12: Books Management System
Khóa học qua video:
Lập trình Python All Lập trình C# All SQL Server All Lập trình C All Java PHP HTML5-CSS3-JavaScript
Đăng ký Hội viên
Tất cả các video dành cho hội viên
Copied !!!