What is the function of the 'method' attribute in an HTML form? MCQ with Answer and Explanation

What is the function of the 'method' attribute in an HTML form?
A. To set the encoding type
B. To specify the HTTP method (GET or POST) for form submission
C. To enable validation
D. To define the action URL
Answer: Option B
Solution (By JKSSB Mock Tests)
The method attribute defines the HTTP method to be used when submitting the form, either GET or POST.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
What is the purpose of the 'Cache-Control' HTTP header?
A. To specify caching policies for the resource
B. To set the language of the content
C. To authenticate the user
D. To control the format of the response

Correct Answer: Option A


Explanation:
The Cache-Control header is used to define caching directives such as max-age, no-cache, and private, controlling how and for how long the resource can be cached.

This question belongs to: Computer Internet and Web Technologies
Question #2
What mechanism does a web server implement to compress digital image files dynamically over internet networks to reduce asset payloads and accelerate webpage loading speeds?
A. Altering localized device hardware MAC address registries
B. Image Compression / Optimization algorithms (e.g., WebP formatting)
C. Static FTP file catalog adjustments
D. Running outbound SMTP mail server delivery routines

Correct Answer: Option B


Explanation:
Modern image formats like WebP use advanced compression algorithms to provide smaller file sizes than traditional JPEG or PNG formats, significantly lowering bandwidth consumption.

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

Correct Answer: Option A


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