in Education by
One of the main advantage of using src attribute is ____________ (a) It becomes self-cached (b) It makes the HTML file modular (c) It restricts manipulation in the HTML file (d) It simplifies the HTML files I got this question by my school principal while I was bunking the class. My question is from Embedding JavaScript in HTML in chapter Server-Side and Client-Side Scripting of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Right option is (d) It simplifies the HTML files Explanation: The main advantage of using the src attribute is that it simplifies your HTML files by allowing you to remove large blocks of JavaScript code from them. Hence separate files for css and javascript files are made to make the code modular and readable.

Related questions

0 votes
0 votes
    Which is the element that has a src property to initiate HTTP GET request? (a) img (b) iframe (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of the following is advantage of using JDBC connection pool? (a) Slow performance (b) Using more ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of the following is advantage of using PreparedStatement in Java? (a) Slow performance (b) Encourages ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is the advantage for Linux users using R? (a) They get a command sequence to install the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    JavaScript Code can be called by using ____________ (a) RMI (b) Triggering Event (c) Preprocessor (d) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is not the advantage of Reflection? (a) Examine a class's field and method at runtime (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which attribute is used to specify initialization method? (a) init (b) init-method (c) initialization (d ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...