Q. What kind of expression is “new Point(2,3)”?

  • (A) Constructor Calling Expression
  • (B) Invocation Expression
  • (C) Object Creation Expression
  • (D) Primary Expression
πŸ’¬ Discuss
βœ… Correct Answer: (C) Object Creation Expression

Q. functional components in JavaScript are

  • (A) Fixed-class functions
  • (B) First-class functions
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) First-class functions

Q. Which of the following is the correct syntax to display “Tanmay” in an alert box using JavaScript?

  • (A) alertbox("Tanmay");
  • (B) message("Tanmay");
  • (C) alert(“Tanmay”);
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) alert(“Tanmay”);

Q. Which one is Ternary Operator

  • (A) ?*
  • (B) ?:
  • (C) >?
  • (D) <?
πŸ’¬ Discuss
βœ… Correct Answer: (B) ?:

Q. Which of the following keywords is used to define a variable in Javascript?

  • (A) var
  • (B) let
  • (C) Both A and B
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both A and B

Q. Which of the following methods is used to access HTML elements using Javascript?

  • (A) getElementbyld()
  • (B) getElementsByClassName()
  • (C) Both A and B
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both A and B

Q. Upon encountering empty statements, what does the Javascript Interpreter do?

  • (A) Throws an error
  • (B) Ignores the statements
  • (C) Gives a warning
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) Ignores the statements

Q. Which of the following methods can be used to display data in some form using Javascript?

  • (A) document.write()
  • (B) console.log()
  • (C) window.alert()
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Q. In which element we put javascript?

  • (A) <javascript>
  • (B) <scripting>
  • (C) <script>
  • (D) None of These
πŸ’¬ Discuss
βœ… Correct Answer: (C) <script>

Q. the correct place to insert a JavaScript is ?

  • (A) The section
  • (B) The section
  • (C) Both A & B
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both A & B