C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
Security - Lesson 5: Security Headers Quiz
Answer all questions to test your understanding
1
What are security headers?
HTTP response headers that instruct browsers on secure behavior
Database headers
CSS headers
JavaScript headers
2
What does the Content-Security-Policy (CSP) header do?
Specifies allowed content sources
Blocks all content
Allows all content
Disables CSS
3
What does X-Frame-Options: DENY do?
Prevents the page from being displayed in frames
Allows the page in all frames
Redirects to HTTPS
Enables JavaScript
4
What is the purpose of X-Content-Type-Options: nosniff?
Prevents MIME type sniffing
Allows MIME type sniffing
Disables CSS
Enables JavaScript
5
What does the Strict-Transport-Security header do?
Forces browsers to use HTTPS
Allows HTTP only
Redirects to HTTP
Disables SSL
Submit Quiz