Top 80+ Solved JavaScript MCQ Questions Answer

From 16 to 30 of 67

Q. ----this key word is used to declared the variable in java script.

a. document.write():

b. CONSOLE.LOG

c. var

d. none of these

  • c. var

Q. -----this key word is used to declared the constant in java script.

a. document.write():

b. CONST

c. var

d. none of these

  • b. CONST

Q. ------it is assignment operator is used to not equal value.

a. document.write():

b. CONST

c. =

d. !==

  • d. !==

Q. in java script------are written with quotes. You can use single or double quotes.

a. document.write():

b. STRING

c. =

d. !==

  • b. STRING

Q. in java script------items are separated by commas.

a. document.write():

b. STRING

c. array

d. !==

  • c. array

Q. Which type of JavaScript language is ___

a. Object-Oriented

b. Object-Based

c. Assembly-language

d. High-level

  • b. Object-Based

Q. Which one of the following also known as Conditional Expression:

a. Alternative to if-else

b. Switch statement

c. If-then-else statement

d. immediate if

  • c. If-then-else statement

Q. The "function" and " var" are known as

a. Keywords

b. Data types

c. Declaration statements

d. Prototypes

  • c. Declaration statements

Q. Which of the following variables takes precedence over the others if the namesare the same?

a. Global variable

b. The local element

c. The two of the above

d. None of the above

  • b. The local element

Q. Which one of the following is the correct way for calling the JavaScript code?

a. Preprocessor

b. Triggering Event

c. RMI

d. Function/Method

  • d. Function/Method

Q. Which of the following type of a variable is volatile?

a. Mutable variable

b. Dynamic variable

c. Volatile variable

d. Immutable variable

  • a. Mutable variable

Q. the JavaScript, which one of the following is not considered as an error:

a. Syntax error

b. Missing of semicolons

c. Division by zero

d. Missing of Bracket

  • c. Division by zero

Q. In JavaScript the x===y statement implies that:

a. Both x and y are equal in value, address as well.

b. Both are x and y are equal in value only.

c. Both are equal in the value and data type.

d. Both are not same at all.

  • c. Both are equal in the value and data type.

Q. In JavaScript, what will be used for calling the function definition expression:

a. Function prototype

b. Function literal

c. Function calling

d. Function declaration

  • b. Function literal
Subscribe Now

Get All Updates & News