Basic JavaScript MCQ - Quiz

  • AConditional block
  • BBlock that combines a number of statements into a single compound statement
  • CBoth conditional block and a single statement
  • DBlock that contains a single statement
  • AException will be thrown
  • BYes, perfectly
  • CError
  • DMemory leak
  • ABoth x and y are equal in value, type and reference address as well.
  • BBoth are x and y are equal in value only. .
  • CBoth are equal in the value and data type.
  • DBoth are not same at all
  • AgetElementbyId()
  • BgetElementsByClassName()
  • CBoth A & B
  • DNone of the above
  • APrototypes
  • BDeclaration statements
  • CData Types
  • DKeywords