11.) What Angular feature helps prevent CSRF attacks?
A) HTTP Interceptors
B) Angular Forms
C) CORS Headers
D) Content Projection
12.) What does HttpOnly in cookies do?
A) Allows JavaScript to access cookies
B) Prevents JavaScript from accessing cookies
C) Enables real-time data binding
D) Blocks Angular services
13.) What type of attack does XSS refer to?
A) SQL Injection
B) Phishing
C) Cross-Site Scripting
D) DDoS
14.) What Angular security feature prevents clickjacking?
A) X-Frame-Options header
B) URL Hashing
C) Angular Guards
D) Data Binding
15.) What encryption technique is recommended for storing passwords?
A) Plain text
B) Base64 Encoding
C) Hashing with bcrypt
D) URL Encoding
16.) What is OAuth 2.0 in Angular authentication?
A) A CSS framework for styling Angular applications
B) A token-based authentication framework
C) A frontend library for animations
D) A debugging tool for Angular components
17.) What does OpenID Connect add to OAuth 2.0?
A) Authorization
B) Encryption
C) Security
D) Authentication
18.) Where should authentication tokens be stored?
A) Cookies
B) Local Storage
C) Session Storage
D) HTTP Headers
19.) What Angular security measure prevents sensitive information exposure?
A) Logging user data in the console
B) Storing credentials in environment.ts
C) Using environment variables for sensitive data
D) Hardcoding API keys in the frontend
20.) What does CSRF stand for?
A) Cross-Server Response Function
B) Client-Side Resource Fetch
C) Common Security Request Form
D) Cross-Site Request Forgery
Related