JQJ 0% 6 123456789101112131415161718192021222324252627282930 jqj 1 / 30 which operator outputs the remainder of an integer division? Add Subtraction Modulus Increment 2 / 30 JavaScript counts positions from? 1 -1 Can not say 3 / 30 The _________ keyword complicates the code and slows down execution speed this let new none of the above 4 / 30 The easiest way to add a new element to an array is using the _________ method add() insert() push() set() 5 / 30 What will be printed in the console on execution of the below code? var materials = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium' ]; console.log(materials.map (material => material.length)); [8, 6, 7, 9] 4 [4] 8, 6, 7, 9 6 / 30 The regular expression to match any one character not between the brackets is __________ [....] [^] [^...] [D] 7 / 30 JavaScript allows you to work with __________ primitive data types. 1 2 3 4 8 / 30 What will be the output of the following JavaScript code? function myfun() { var a = ""; document.getElementById ("demo").innerHTML = Boolean(a); } 1 error undefined 9 / 30 Storing a value in a variable is called ? variable declaration variable destroyed variable store variable initialization 10 / 30 _________ cannot accept negative indexes. slice() substring() both 1 and 2 none of the above 11 / 30 If var A={B:3, C:5}, how to use the delete operator to delete one of the properties of an objec delete delete A delete A.B delete A[0] 12 / 30 When you invoke the........ method on a function f and pass an object o, the method returns a new function. apply() call() bind() string() 13 / 30 Which of the following is a syntactically correct for loop? for (i<=10;i++) for i=1 to 10 for (i=0;i<=10;i++) for (i=0;i<=10) 14 / 30 The ________ operator in JavaScript returns "object" for arrays. and or not typeof 15 / 30 What is the full form DOM? Document Object Model Document Onhalt Model Document Oriented Model Document Oriented Management 16 / 30 Logical AND : If both the operands are non-zero, then the condition becomes true. Yes No Can be yes or no Can not say 17 / 30 A ___________ has global scope which means it can be defined anywhere in your JavaScript code. local variable global variable simple variable complex variable 18 / 30 The HTML DOM is a standard object model and programming interface for HTML. 1 Can be true or false Can not say 19 / 30 The statement is an example of: while (3==3) {} A typographical error An infinite loop An illegal JavaScript statement None of the above 20 / 30 What is true about Arrays? JavaScript does not support associative arrays You should use objects when you want the element names to be strings You should use arrays when you want the element names to be numbers All of the above 21 / 30 What will be the output of the below code ? console.log( typeof( '5' + 5)) number string object null 22 / 30 Which operator will return false if two value are equal? ! != !== All of the above 23 / 30 If the operator value is null, then the unary operator returns the typeof _________. undefined object boolean string 24 / 30 Consider the JavaScript code: Identify the value that will be displayed in alert box at line 5?function lfc(myname){ console.log(10+"lfc" +12); } res=lfc(10); console.log(res); //line 5 10 10lfc12 undefined 10lfc 25 / 30 What will be the output of the below code? let chaval= (p)=>p+2; console.log(chaval(2)); 4 22 Error: changeVal is not a function undefined 26 / 30 _______ extracts a part of a string and returns the extracted part in a new string. substring() substr() strlen() slice() 27 / 30 The ________ operator is used to create an instance of an object. this self find new 28 / 30 What will be printed in the console on execution of the following JS code: var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; var myArr= array.filter(v => v % 3 === 0); console.log(myArr); myArr [3, 6, 9, 12, 15] [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] [1, 2, 4, 5, 7, 8, 10, 11, 13, 14] 29 / 30 Array indexes start with ______. -1 1 can not say 30 / 30 What will be the output if we compare "ten" and 10 with less then comparison operator("ten"<10)? 1 undefined error Your score is LinkedIn Facebook VKontakte 0% By Wordpress Quiz plugin