What does a '401 Unauthorized' HTTP response status code indicate to an accessing client? MCQ with Answer and Explanation

What does a '401 Unauthorized' HTTP response status code indicate to an accessing client?
A. The target website has moved permanently to a fresh alternative domain.
B. The connection timed out due to physical fiber faults.
C. The web server cannot locate the directory page requested.
D. The requested resource requires valid user authentication credentials (like a username and password) before access is granted.
Answer: Option D
Solution (By JKSSB Mock Tests)
The 401 status code indicates that the request lacks valid authentication credentials for the target resource, requiring the user to log in first.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which specific browser design framework operates to split an individual browser tab workspace into sandboxed process channels to prevent a single site script crash from bringing down the entire application window?
A. Multi-Process Browser Architecture
B. Unlinked proxy server bypass channels
C. Local host structural routing systems
D. Monolithic single thread design layout

Correct Answer: Option A


Explanation:
Modern browsers (like Chrome and Edge) use a multi-process architecture that isolates separate tabs and extensions into their own memory sandboxes, improving stability and security.

This question belongs to: Computer Internet and Web Technologies
Question #2
What does a '504 Gateway Timeout' HTTP status code tell a web user?
A. The browser cache folder space has run out of local memory storage.
B. The server, while acting as a gateway or proxy, did not receive a timely response from the upstream backend server to complete the request.
C. The digital SSL identity certificate has completely expired.
D. The user entered an unapproved domain string value inside the search engine interface.

Correct Answer: Option B


Explanation:
A 504 status code means that an intermediate proxy or gateway server timed out while waiting for a response from an internal upstream server during a request loop.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the purpose of the 'noscript' tag in HTML?
A. To provide alternative content for browsers that do not support JavaScript
B. To embed server-side code
C. To hide elements
D. To disable scripts

Correct Answer: Option A


Explanation:
The tag defines content to be displayed if the user's browser does not support or has disabled JavaScript.

This question belongs to: Computer Internet and Web Technologies