Top 50+ Solved Fundaments of Web Designing MCQ Questions Answer
Q. What should appear at the very end of your JavaScript?The <script LANGUAGE="JavaScript">tag
a. the </script>
b. the <script>
c. the end statement
d. none of the above
Q. Which of the following can't be done with client-side JavaScript?
a. validating a form
b. sending a form\s contents by email
c. storing the form\s contents to a database file on the server
d. none of the above
Q. Which of the following are capabilities of functions in JavaScript?
a. return a value
b. accept parameters and return a value
c. accept parameters
d. none of the above
Q. ______ tag is an extension to HTML that can enclose any number of JavaScript statements.
a. <script>
b. <body>
c. <head>
d. <title>
Q. Which of the following attribute can hold the JavaScript version?
a. language
b. script
c. version
d. none of the above
Q. What is the correct JavaScript syntax to write "Hello World"?
a. system.out.println("hello world")
b. println (“hello world”)
c. document.write("hello world")
d. response.write("hello world")
Q. Which of the following way can be used to indicate the LANGUAGE attribute?
a. <language="javascriptversion">
b. <script language="javascriptversion">
c. <script language="javascriptversion"> javascript statements…</script>
d. <script language="javascriptversion"!> javascript
Q. Inside which HTML element do we put the JavaScript?
a. <js>
b. <scripting>
c. <script>
d. <javascript>
Q. What is the correct syntax for referring to an external script called " abc.js"?
a. <script href=" abc.js">
b. <script name=” abc.js”>
c. <script src=" abjs">
d. none of the above
Q. What does the <noscript> tag do?
a. enclose text to be displayed by non-javascript browsers.
b. prevents scripts on the page from executing.
c. describes certain low-budget movies.
d. none of the above
Q. JavaScript entities start with _______ and end with _________.
a. semicolon, colon
b. semicolon, ampersand
c. ampersand, colon
d. ampersand, semicolon
Q. Which of the following best describes JavaScript?
a. low-level programming language.
b. a scripting language precompiled in the browser.
c. a compiled scripting language.
d. an object-oriented scripting language.
Q. Which of the following event fires when the form element loses the focus: <button>, <input>,<label>, <select>, <textarea>?
a. onfocus
b. onblur
c. onclick
d. ondblclick
Q. How to create a Date object in JavaScript?
a. dateobjectname = new date([parameters])
b. dateobjectname.newdate([parameters])
c. dateobjectname := new date([parameters])
d. dateobjectname date([parameters])