Which of the following is a type of web attack that injects malicious scripts into web pages?
A. Cross-Site Request Forgery (CSRF)
B. Cross-Site Scripting (XSS)
C. SQL Injection
D. Phishing
Answer: Option B
Solution (By JKSSB Mock Tests)
Cross-Site Scripting (XSS) is a vulnerability where attackers inject malicious scripts into otherwise benign websites, which are then executed in users' browsers.
Explanation:
The defer attribute tells the browser to continue parsing the HTML while the script downloads, and execute it after the document is parsed, in order.
What mechanism does a web browser implement to store layout stylesheets and image files from visited websites inside device storage to avoid re-downloading them on subsequent visits?
A.Altering localized device hardware MAC address registries
B.Static FTP file catalog adjustments
C.Browser Caching
D.Running outbound SMTP mail server delivery routines
Explanation:
Browser caching saves static website assets (like logos, CSS files, and scripts) to the local hard drive, reducing page load times and saving bandwidth during repeat visits.
No comments yet. Be the first to start the discussion!