Top 350+ Solved Web Technology MCQ Questions Answer

From 286 to 300 of 417

Q. When does JavaScript code appear inline within an HTML file?

a. Between the “script” tag

b. Outside the “script” tag

c. Both a and b

d. None of the mentioned

  • a. Between the “script” tag

Q. Which is the root element in a HTML document?

a. HTML

b. HEAD

c. SCRIPT

d. BODY

  • a. HTML

Q. What is the default value of the type attribute in javascript?

a. text/css

b. text/javascript

c. text

d. xml

  • a. text/css

Q. What are the objects in Java Script?

a. Document object

b. Window object

c. Form object

d. All of the above

  • d. All of the above

Q. JavaScript Code can be called by using

a. RMI

b. Triggering Event

c. Preprocessor

d. Function

  • d. Function

Q. A hexadecimal literal begins with

a. 00

b. 0x

c. 0X

d. Both b and c

  • d. Both b and c

Q. The escape sequence ‘\f’ stands for

a. Floating numbers

b. Representation of functions that returns a value

c. \f is not present in JavaScript

d. Form feed

  • d. Form feed

Q. The snippet that has to be used to check if “a” is not equal to “null” is

a. if(a!=null)

b. if (!a)

c. if(a!null)

d. if(a!==null)

  • d. if(a!==null)

Q. A function definition expression can be called

a. Function prototype

b. Function literal

c. Function definition

d. Function declaration

  • b. Function literal

Q. JavaScript is a _______________ language

a. Object-Oriented

b. High-level

c. Assembly-language

d. Object-Based

  • d. Object-Based

Q. A conditional expression is also called a

a. Alternate to if-else

b. Immediate if

c. If-then-else statement

d. None of the above

  • b. Immediate if

Q. The “var” and “function” are

a. Keywords

b. Declaration statements

c. Datatypes

d. Prototypes

  • b. Declaration statements

Q. The method or operator used to identify the array is

a. isarrayType()

b. ==

c. ===

d. typeof

  • d. typeof
Subscribe Now

Get All Updates & News