Which of the following is a type of web-based attack that involves injecting SQL queries into input fields? MCQ with Answer and Explanation

Which of the following is a type of web-based attack that involves injecting SQL queries into input fields?
A. SQL Injection
B. Cross-Site Request Forgery
C. Session Hijacking
D. Cross-Site Scripting
Answer: Option A
Solution (By JKExamLibrary)
SQL Injection is an attack where malicious SQL statements are inserted into input fields to manipulate the database.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1 Report Error
Which network utility allows a user to trace the specific real-time hop-by-hop path and transit delays of packets moving across routers from source to destination on the internet?
A. Traceroute (or tracert)
B. Ping utility loop
C. Ipconfig / Ifconfig
D. Netstat command utility

Correct Answer: Option A


Explanation:
Traceroute maps out and records the explicit path of network routers that data packets cross to reach a target destination, displaying transit times for each hop.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
Which HTTP status code indicates that a requested page has been permanently moved?
A. 404
B. 301
C. 302
D. 400

Correct Answer: Option B


Explanation:
HTTP 301 means Moved Permanently, indicating the resource has been assigned a new permanent URI. 302 is temporary redirect, 400 is Bad Request, and 404 is Not Found.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which of the following is a characteristic of a WebSocket?
A. It provides full-duplex communication over a single TCP connection
B. It is a request-response protocol
C. It is based on HTTP/2
D. It uses a new port for each message

Correct Answer: Option A


Explanation:
WebSocket enables two-way interactive communication between a client and server over a single persistent connection, unlike HTTP which is half-duplex.

This question belongs to: Computer Internet and Web Technologies