What is the purpose of the 'Session' in web applications? MCQ with Answer and Explanation

What is the purpose of the 'Session' in web applications?
A. To manage database connections
B. To maintain state across multiple requests from the same user
C. To store static files
D. To handle form submissions
Answer: Option B
Solution (By JKSSB Mock Tests)
A session is a server-side storage that persists user-specific data (like login status) across requests, using cookies or URL rewriting.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
Which element in a modern web ecosystem describes an online platform that aggregates personal journal entries, commentary articles, and multimedia layouts published chronologically by an individual or small group?
A. Local history log dashboard
B. FTP desktop file transfer utility
C. Outbound email transport routing block
D. Blog (Weblog)

Correct Answer: Option D


Explanation:
Blogs are content-focused websites featuring chronological posts and comments, managed through a simple Content Management System (CMS) interface.

This question belongs to: Computer Internet and Web Technologies
Question #2
What does a '405 Method Not Allowed' HTTP status code return imply about a client browser's interaction with a web application?
A. The web server facility has completely crashed down.
B. The input security certificate has an expired authorization date.
C. The server recognizes the request method, but the specific target resource does not support that method (e.g., trying to POST to a read-only static text file).
D. The requested URL address path has changed its location permanently.

Correct Answer: Option C


Explanation:
An HTTP 405 error occurs when the requested resource is configured to reject the specific HTTP method used (such as a browser attempting a POST action on a static page designed only to accept GET requests).

This question belongs to: Computer Internet and Web Technologies
Question #3
In web development, what language is used primarily to define the presentation, layout, and visual styling of a web document written in HTML?
A. SQL
B. CSS
C. PHP
D. JavaScript

Correct Answer: Option B


Explanation:
CSS (Cascading Style Sheets) handles the layout, design, formatting, and presentation logic of web content.

This question belongs to: Computer Internet and Web Technologies