What is the function of the 'defer' attribute in a script tag? MCQ with Answer and Explanation

What is the function of the 'defer' attribute in a script tag?
A. To load the script after page load
B. To delay script execution until the page has parsed
C. To execute the script asynchronously
D. To prevent script from running
Answer: Option B
Solution (By JKExamLibrary)
The defer attribute tells the browser to continue parsing the HTML while the script downloads, and execute it after the document is parsed, in order.

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
What does a web browser perform when executing a 'DNS Lookup' operation?
A. It establishes a secure tunnel path via proxy configurations.
B. It queries DNS servers to resolve a domain name string into its underlying IP address.
C. It downloads heavy multimedia files to local cache blocks.
D. It clears out localized hardware registry errors.

Correct Answer: Option B


Explanation:
DNS resolution looks up human-readable text domain destinations to find their matching numerical IP addresses so network connections can be established.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What does the 'autocomplete' attribute in HTML forms control?
A. Whether the browser can automatically fill in form fields
B. Whether the form uses JavaScript
C. Whether the form should submit automatically
D. Whether the form is validated

Correct Answer: Option A


Explanation:
The autocomplete attribute suggests whether the browser should enable automatic completion of input values based on the user's prior entries.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
What mechanism inside an enterprise network system blocks unapproved external inbound data connections while permitting legitimate internal outbound web interactions?
A. Web Crawler Engine
B. Browser Cache Block
C. Cookie Tracker Module
D. Firewall

Correct Answer: Option D


Explanation:
A firewall monitors and filters incoming and outgoing network traffic based on an organization's previously established security policies.

This question belongs to: Computer Internet and Web Technologies