Top 80+ Solved JavaScript MCQ Questions Answer
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
Q. -----this key word is used to declared the constant in java script.
a. document.write():
b. CONST
c. var
d. none of these
Q. -------it is assignment operator is used to assign value from right hand side to lefthand side .
a. document.write():
b. CONST
c. =
d. none of these
Q. ------it is assignment operator is used to not equal value.
a. document.write():
b. CONST
c. =
d. !==
Q. in java script------are written with quotes. You can use single or double quotes.
a. document.write():
b. STRING
c. =
d. !==
Q. in java script------items are separated by commas.
a. document.write():
b. STRING
c. array
d. !==
Q. Which type of JavaScript language is ___
a. Object-Oriented
b. Object-Based
c. Assembly-language
d. High-level
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
Q. The "function" and " var" are known as
a. Keywords
b. Data types
c. Declaration statements
d. Prototypes
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
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
Q. Which of the following type of a variable is volatile?
a. Mutable variable
b. Dynamic variable
c. Volatile variable
d. Immutable 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
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.
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