Top 50+ Solved Fundamentals of Web Designing MCQ Questions Answer

From 1 to 15 of 37

Q. Javascript is _________ language.

a. application

b. programming

c. scripting

d. none of these

  • c. scripting

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

  • b. the web server

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

  • c. storing the form\s contents to a database file on the server

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

  • c. accept parameters

Q. ______ tag is an extension to HTML that can enclose any number of JavaScript statements.

a. <script>

b. <body>

c. <head>

d. <title>

  • a. <script>

Q. Which of the following attribute can hold the JavaScript version?

a. language

b. script

c. version

d. none of the above

  • a. language

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")

  • c. document.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>

  • c. <script language="javascriptversion"> javascript statements…</script>

Q. Inside which HTML element do we put the JavaScript?

a. <js>

b. <scripting>

c. <script>

d. <javascript>

  • c. <script>

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

  • c. <script src=" abc.js">

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

  • a. enclose text to be displayed by non-javascript browsers.

Q. JavaScript entities start with _______ and end with _________.

a. semicolon, colon

b. semicolon, ampersand

c. ampersand, colon

d. ampersand, semicolon

  • 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.

  • d. an object-oriented scripting language.
Subscribe Now

Get All Updates & News