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
  • AA URL that uses the special javascript:protocol
  • BA URL that uses the special javascript:code
  • CA URL that uses the special javascript:encoding
  • DA URL that uses the special javascript:stack
  • AgetElementbyId()
  • BgetElementsByClassName()
  • CBoth A & B
  • DNone of the above
  • Aobj.newProperty = 'value';
  • Bobj.addProperty('newProperty', 'value');
  • Cobj['newProperty'] = 'value';
  • Dobj.set('newProperty', 'value');
  • AJavaScript is a scripting language used to make the website interactive
  • BJavaScript is an assembly language used to make the website interactive
  • CJavaScript is a compiled language used to make the website interactive
  • DNone of the mentioned