Top 50+ Solved Fundamentals of Web Designing MCQ Questions Answer
Q. When a user views a page containing a JavaScript program, which machine actually executesthe script?
a. the user\s machine running a web browser
b. the web server
c. a central machine deep within netscape\s corporate offices
d. none of the above
Q. _____ JavaScript statements embedded in an HTML page can respond to user events such asmouse-clicks, form input, and page navigation.
a. client-side
b. server-side
c. local
d. native
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 statements…</script>
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