Which of the following is a type of web attack that injects malicious scripts into web pages? MCQ with Answer and Explanation

Which of the following is a type of web attack that injects malicious scripts into web pages?
A. Cross-Site Scripting (XSS)
B. Cross-Site Request Forgery (CSRF)
C. SQL Injection
D. Phishing
Answer: Option A
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.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
Which type of web application asset functions as a structured document template written using hypertext markup labels, forming the raw foundation of web pages?
A. Unlinked configuration log text
B. HTML file (.html)
C. CSS formatting style schemas
D. SMTP routing statement parameters

Correct Answer: Option B


Explanation:
HTML files form the structural foundation of the World Wide Web, housing the tags, elements, text, and asset references parsed and displayed by browser engines.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which of the following is a web-based API architecture that uses HTTP methods?
A. GraphQL
B. REST
C. All of the above
D. SOAP

Correct Answer: Option B


Explanation:
REST is specifically designed around HTTP methods (GET, POST, etc.) and resources. SOAP and GraphQL are also web APIs but not solely based on HTTP verbs.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following parameters represents an accurate description of the web development framework component called 'API' (Application Programming Interface)?
A. A set of defined protocols and tools that allow different software applications to communicate and exchange data with one another over the web
B. The physical processing chip architecture used inside server hubs
C. A specialized local browser button designed to wipe history traces
D. An unlinked text archive folder stored on network devices

Correct Answer: Option A


Explanation:
Web APIs define clear communication contracts and endpoints, allowing backend services, mobile apps, and third-party tools to integrate and share data seamlessly.

This question belongs to: Computer Internet and Web Technologies