LyraLearn AI Learning Platform
Exams
← Back to the lesson
Module 3 Β· Quiz

Razor Views and Layouts

1. What is the primary purpose of Razor in ASP.NET Core?
2. What does the `@RenderSection` method do in a Razor layout?
3. Why should you always pass an explicit model to a partial view instead of allowing it to read from the parent model?
4. What does Razor do to protect against XSS vulnerabilities when rendering HTML output?