Home Programming Kids Programming Hardware & Software Hardware & Networking APP security Software Education Kids Study MCQS Download OTHERS Login

JavaScript MCQ Questions and Answers for Freshers

Categories: MCQS

JavaScript MCQ Questions and Answers for Freshers

 

1. Which of the keyword is used to define the variable in the JavaScript?

 

  1. var
  2. let
  3. Both A & B
  4. None of the above

Answer - c. Both A & B

 

2. which of the method is used to get HTML element in JavaScript?

 

  1. getElementbyId()
  2. getElementsByClassName()
  3. Both A & B
  4. None of the above

 Answer - c. Both A & B

 

3. What does NaN means?

 

  1. Negative Number
  2. Not a Number
  3. Both A & B
  4. None of the Above

Answer -b. Not a Number

 

4. How do we put JavaScript inside HTML?

 

  1. <js>
  2. <javascript>
  3. <scripting>
  4. <script>

 

Answer -d. <script>

 

5. Which of the following is not a JavaScript framework?

 

  1. Vue
  2. React
  3. Node
  4. Laravel

Answer - d. Laravel

 

6. Which of the following tag used to write JavaScript code?

 

  1. <script>
  2. <js>
  3. <javascript>
  4. <java>

Answer -a. <script>

 

7. The "let" and " var" are known as:

 

  1. Prototype
  2. Declaration statements
  3. Data Types
  4. Keywords

Answer -b. Declaration statements

 

8. Which one is not a comparison operator?

 

  1. =
  2. !=

Answer -a. =

 

9. Which type of JavaScript language is?

 

  1. Object-oriented
  2. Object-based
  3. Functional
  4. None of above

 Answer -b. Object-based

 

10. Which symbol is used separate JavaScript statements?

 

  1. Comma(,)
  2. Colon(:)
  3. Hyphen(_)
  4. Semicolon(;)

Answer -d. Semicolon(;)

JavaScript MCQ Questions and Answers for Freshers