0% found this document useful (0 votes)
5 views

Javascript Concepts

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Javascript Concepts

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Question Option A Option B Option C Answer

1. What is the var myVar; variable myVarv myVar; A


2. Which of theString Element Number C
3. How do youalertBox("Hello
w msg("Hello Wor alert("Hello WoC
4. Which metho combine() concat() attach() B
5. How do you// This is a c <!-- This is a # This is a co A
6. What will be 4 "22" NaN B
7. How do youfunction myFunc def myFunctioncreate myFunct A
8. Which operat * Err:520 : B
9. What is the var arr = "red",var arr = (1:"revar arr = ["red"C
10. How do you Math.max(x, y)ceil(x, y) Math.ceil(x, y) A
11. Which meth pop() shift() removeLast() A
12. How do you Math.rnd(7.25)Math.round(7. round(7.25) B
13. Which of thinterface throws program C
14. How do you const myVar; constant myVavar const myVa A
15. How do you Err:520 Err:520 Err:520 B
16. What is th Refers to the gRefers to the cRefers to the pB
17. How do you var obj = {}; var obj = Objecvar obj = newOA
18. Which meth push() unshift() splice() B
19. How can yo parseInt() StringToNumbe toNumber() A
20. What will b"null" "object" "undefined" B
21. How do you pop() shift() removeFirst() B
22. What doesChecks if a vaConverts a str Checks if a nuA
23. How do you class MyClassdefine MyClasscreateClass My A
24. Which of t import { myMod include 'module require('module A
25. What is the"number" "NaN" "undefined" A
26. Which meth add() push() append() B
27. How can yo let p = new Pr let p = Promis let p = new ProC
28. What will t 1 0 undefined B
29. How do you let myFunc = ()let myFunc => let myFunc = ()A
30. What is th To bind a functTo combine twTo copy an objA
31. Which of thcontains() has() includes() C
32. How can yo str.upper() str.toUpperCasstr.upperCase(B
33. Which keyw try catch both A and B C
34. What is the"array" "object" "list" B
35. How do you object.addPropobject[propertyaddProperty(obj B
36. What will c 2 "11" undefined B
37. Which metho split() slice() splice() A
38. How do you pause() sleep() setTimeout() C
39. Which meth indexOf() findIndex() search() A
40. How do you if (variable == if (variable == if (typeof vari C
41. Which oper Err:520 Err:520 Err:520 C
42. How do you JSON.stringifytoJSON(objectJSON.parse(ob A
43. What is the 7 52 NaN B
44. How can yo for (key in objefor (key of objefor (key with o A
45. Which meth removeProperty delete object.premove object.B
46. How do you if (array.lengthif (array.empty(if (array == nulA
47. What will cH e o A
48. Which meth merge() concat() combine() B
49. What does"array" "object" "list" B
50. How can yo Array.isArray(vvalue.isArray()isArray(value) A
51. How do you remove() splice() delete() B
52. What is the 1 0 null A
53. How can yo copyObject(objObject.assign({object.clone() B
54. What doesFilters an arra Iterates over Joins two arra B
55. Which keyw async await defer A
56. What will cInfinity 0 undefined A
57. How do you clearInterval() stopInterval() pauseInterval(A
58. Which methojoin() concat() combine() A
59. What will c"object" "function" "undefined" B
60. How can youincludes() contains() indexOf() A
61. What doesNot a Number Null and NoneNo AssignableA
62. How do you object.method object.method.a
= addMethod(objecA
63. What is th "number" "NaN" "undefined" A
64. How do you number.toStrinString(numberBoth A and B C
65. What will c 6 8 9B
66. How can yo var arr = []; var arr = new ABoth A and B C
67. What doesFilters
t elementCombines two Sorts an arrayA
68. How do you Date.now() new Date() getCurrentDateB
69. What is theTo run multipleTo run promis To cancel a prA
70. What doesEnables
u strict Makes JavaScri Throws errors A
71. How do you object.variableobject["variabl object[variableC
72. What is the"" "[]" undefined A
73. How can yo Number.isIntegisInt() checkInteger()A
74. What will "symbol" "object" "function" A
75. How do you Math.floor() Math.ceil() Math.round() C
76. What will c 1 0 undefined B
77. Which meth Array.from() Array.convert()Array.of() A
78. How can yo Object.merge(Object.assign(Object.combinB
79. What is the 5 "105" 5C
80. How do you startsWith() hasPrefix() beginsWith() A
81. What is the 1 2 1B
82. How do you array.flip() array.reverse()array.swap() B
83. What will c 1 0 undefined A
84. How do you str.toLower() str.lower() str.toLowerCasC
85. What is the"undefined" "null" "object" A
86. How do you splice() add() insert() A
87. What is the"3" 3 undefined B
88. How do you hasProperty() object.propertyobject.hasOwnC
89. How do you JSON.parse() JSON.stringify(JSON.convert(A
90. What will c 4 "22" NaN A
91. How do you typeof variablevariable.isStrinisString(variabA
92. What doesReduces the siApplies a functFilters elementB
93. What will c 1 0 undefined B
94. How do you unshift() push() add() A
95. What will c"null" "object" "undefined" B
96. How do you parseInt() parseFloat() Math.round() A
97. What is th "NaN" "number" "undefined" B
98. How do you Number() parseNumber(toNumber() A
99. What will 2 1 0B
100. How do yo str.length() length.str str.length C
101. What is th 6 9 8B
102. How do yo Array.copy() Array.from() slice() C
103. What does Rounds a numbe Converts a num Formats a numbC
104. How do yo array.length() length(array) array.length C
105. What is th 20 "1010" NaN B
106. Which of ?t: && `
107. How do yo map() filter() reduce() B
108. How do yo indexOf() find() includes() C
109. What will 5 NaN "105" A
110. How can sytopTimeout() clearTimeout()pauseTimeout(B
111. What is th 75 12 "75" C
112. How do yo concat() merge() combine() A
113. What is t To remove eleTo extract a paTo sort an arr A
114. What will 1 0 undefined B
115. How do yo JSON.stringifyObject.assign(Object.clone() A
116. What will 5 "5" NaN A
117. How do youstr.charAt(0) str[0] Both A and B C
118. What does An array of theAn array of theAn array of theA
119. How do yo 123 number("123")toNumber("123A
120. What will [1, 2, 3, 4, 5, 61,2,34,5,6 1,2,34,5,6 B
121. How do yo array.sort() array.sort((a, barray.sortAsc()B
122. What does Prevents the mo Prevents the aBoth A and B C
123. How do yo array.filter() array.unique() Array.from(newC
124. How do youendsWith() hasSuffix() ends() A
125. What is th 1 0 undefined B
126. How do youarray.join() array.concat() array.toString(A
127. What does Checks if all e Checks if at l Filters elemen A
128. What is th 1 0 "false" A
129. How do yo array.remove(iarray.splice(in array.delete(it B
130. How do yo array.slice() [...array] array.copy() B
131. What is t 1 0 "NaN" A
132. What is t Resolves with R t esolves whenCancels the slA
133. How do yo setTimeout() delay() timeout() A
134. What is th 1 0 null B
135. How do yo Object.create(nObject.create()Object.new() A
136. What will NaN 123 undefined A
137. How do youNumber.isFinitisFiniteNumberNumber.checkF A
138. What does Returns the firReturns the indFilters elementA
139. How do yo object.prototy Object.getProtobject.getProt B
140. What is th 2 1 0B
141. How do yo new Date() Date.now() getCurrentDateA
142. What does Checks if all e Checks if at l Filters elemen B
143. What will 2 1true NaN A
144. How do yo Array.isArray(vvariable.isArratypeof variableA
145. What is t Prevents modifi Prevents only Prevents deletiB
146. How do yo number.toExpon number.exp() number.toExp(A
147. What is th[1, 2] [2, 3] [1, 3] B
148. How do yo array.toString(array.concat() array.join(sepaC
149. What does Generates a r Generates a raGenerates a r B
150. How do yo Number.isNaN( isNaN(value) Both A and B C
151. What will 1 0 undefined B
152. How do yo array[-1] array[array.lenarray.last() B
153. What does Evaluates a stConverts a str Finds the lengtA
154. What will 15 NaN "53" A
155. How do yo map() forEach() reduce() A
156. What is th 1 0 undefined A
157. How do yo new Date(year,Date.set(year,new Date("YY C
158. What does "array" "object" "undefined" B
159. How do yo object[prop] = object.prop = object.addPropA
160. What is th"53" 8 "8" A
161. How do yo pop() shift() splice() A
162. What is th 1 0 null B
163. How do yo var arr = [[]] var arr = [[], []]Both A and B C
164. What does "object" "function" "undefined" B
165. What is th 102 99 "99" B
166. How do yo object.propertyobject.addPropobject["propertC
167. What will [1, 2, 3, 4, 5, 6 123456 [4, 5, 6, 1, 2, 3A
168. How do yo break stop exit A
169. What is th 8 16 32 B
170. How do yo Object.keys(obobj.isEmpty() obj == {} A
171. What does "null" "object" "undefined" B
172. How do yo str.reverse() str.split('').revestr.flip() B
173. What is th"222" 6 NaN A
174. How do yo Math.max(...ararray.max() Math.max(arraA
175. What does Fills an array wAppends values Clears an arraA
176. How do yo str.trim() str.strip() str.clean() A
177. What is th"abcabc" NaN undefined B
178. How do yo [...Array(10).ke[0, 1, 2, 3, 4, 5Both A and B C
179. What will "H" "e" "l" B
180. How do yo array.forEach(array.each() array.iterate() A
181. What is t "null" "object" "undefined" C
182. How do yo shift() pop() splice() A
183. What is th 1 0 null A
184. How do yo Math.min(...arrarray.min() Math.min(arrayA
185. What is t Converts an obConverts a JSO Converts a num A
186. What will 1 0 NaN A
187. How do you/^\d+$/.test(strstr.isDigits() str.onlyDigits()A
188. What is th 1 0 undefined B
189. How do yo [...Array(n).keyArray.range(n)Array.sequencA
190. What does Extracts a sectRemoves eleme Modifies an arrA
191. How do yo Boolean(str) str.toBoolean()parseBool(str)A
192. What will 5 "5" NaN A
193. How do yo str === "" str.isEmpty() str == {} A
194. What is th 2 NaN "53" A
195. How do yo const let var A
196. What will 2 3 undefined B
197. How do yo array.length = array.clear() array.empty() A
198. What does undefined null TypeError C
199. How do yo str.substring() str.sub() str.substr() A
200. What is th"" "[]" undefined A

You might also like