Arrays in JavaScript are written within _____
1. {}
2.[].
3.“â€
4.()
hover() method is the combination of _____
1.mouseleave() and mouseeneter()
2.mousedown() and mouseenter()
3.mouseup() and mousedown()
4.mouseleave() and mousedown()
jQuery does not contain the _____________ feature.
1.AJAAX
2. AJAX
3. CSS manipulation
4.Effects and animations
Which is not the location object method?
1.stop()
2.reload()
3.assign()
4.replace()
Which is not the method of History object?
1.go()
2.moveBy()
3.forward()
4.back()
Which is the method that operates on the return value of $()?
1.show()
2.css()
3. click()
4. done()
Which method is not used for CSS manipulation?
1. toggleClass()
2. removeClass()
3.beforeClass()
4. css()
Which of the following is a factory function?
1.$()
2. jQuery()
3.Queryanalysis()
4.onclick()
Which of the following is not the feature of jQuery?
1.Efficient query method for finding the set of document elements
2. Expressive syntax for referring to elements in the document
3.Useful set of methods for manipulating selected elements
4.Powerful functional programming techniques is not used for operating on sets of elements as a group
AJAX is not used in ______
1.Gmail
2.Youtube
3.Facebook
4.Yahoo
Correct syntax for $.post() method is ______
1.$.post(URL,data,callback)
2. $.post(URL,data)
3.$.post(URL,callback)
4. $.post(data,callback)
External scripts can’t take the tag ____
1. <script>
2.<form>
3.<h1>
4.<title>
For converting string to array we can use ______ method.
1. charAt()
2. charCodeAt()
3.split()
4.toLowerCase()
In JavaScript, which one is used to finding the non-whitespace characters?
1.d
2. s
3.S
4.w
In jQuery all the elements are selected by writing ______
1. $(this)
2. $(“:buttonâ€)
3.$(“*â€)
4. $(“.class_nameâ€)
Negative positions for string do not work in ______
1. Internet Explorer 8
2.Chrome
3. Safari
4.Opera
The integers in JavaScript are precise up to ______
1.12 digits
2.10 digits
3.23 digits
4. 15 digits
The method not used to add new content is _____
1.after()
2.prepend()
3.before()
4.add()
The method releases jQuery’s control of $ is ______
1.$.param()
2. $.noConflict()
3.each()
4.data()
typeof “null†in JavaScript is _______
1.number
2.string
3.object
4.Undefined
What does the min mean in the following JavaScript code? <script src="jquery-1.4.2.min.js"></script>
1.Minimised version
2.Miniature
3.Minimised parameters
4.Minimum value
What is the correct syntax of jQuery?
1.action().$(selector)
2. $(selector).action()
3. (selector)$.action()
4.action().(selector)$
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = "Is this his"; var patt1 = /is$/g; var result = str.match(patt1); if(result) result='true'; else result='false'; document.getElementById("demo").innerHTML = result; } </script>
1. true
2.false
3. error
4.Undefined
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = " Is th is it?"; var patt1 = /^is/m; var result = str.match(patt1); document.getElementById("demo").innerHTML = result; } </script>
1.IS
2. is
3.Error
4.Undefined
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = "Hellooo World!"; var patt1 = /o+/g; var result = str.match(patt1); var count=0; While(result[i]!=NULL) { If(result[I]==o) count++; } document.getElementById("demo").innerHTML = count; } </script>
1.4
2.3
3.1
4.0
What will be the output of the following JavaScript code? <p id="demo"></p> <script> function myFunction() { var str = "Tables"; var patt1 = /tables/i; var result = str.match(patt1); document.getElementById("demo").innerHTML = result; } </script>
1.Tables
2. tables
3.Undefined
4. Error
What will be the output of the following JavaScript code? <script> var str = "The rain in Spain"; var patt1 = /ain/g; document.write(patt1.lastIndex); </script>
1.8
2.17
3.14
4.10
Which is not a JavaScript global function?
1.compile()
2.eval()
3.decodeURI()
4.isNaN()
Which is not the property of location object?
1.origin
2.port
3. host
4. geolocation
Which is the JavaScript code that asks for the set of all div elements in a document?
1. var divs = $(div);
2. var divs = jQuery("div");
3. var divs = $("div");
4.var divs = #("div");
Which method is not for traversing DOM tree sideways?
1.parent()
2. siblings()
3. prev()
4.nextAll()
Which method is not used for filtering in jQuery?
1.next()
2. first()
3.eq()
4. last()
Which method is not used for traversing DOM tree?
1.parent()
2.parentsUntil()
3.parents()
4.after()
Which of the following is a heavily overloaded function?
1. jQuery()
2.$()
3. script()
4. Both jQuery() and $()
Which of the following is a single global function defined in the jQuery library?
1. jQuery()
2. $()
3.Queryanalysis()
4.global()
Which of the following is a utility function in jQuery?
1. jQuery.each()
2. jQuery.parseJSON()
3.jQuery.noConflict()
4.jQuery.conflict()
Which of the following is an equivalent replacement of $(document).ready(f)?
1. jQuery(f)
2.$(f)
3. #(f)
4.read(f)
Which of the following is not a jQuery dimension method?
1. innerWidth()
2. outerHeight()
3.height()
4.css()
Which of the following is not a method of AJAX?
1. get()
2.getJSON()
3. post()
4.stop()
Which of the following is not event method in jQuery?
1.click()
2. mouseenter()
3. mousedown()
4.hide()
Which of the following is not navigator object property?
1.appVersion
2.geolocation
3.document
4.cookieEnabled
Which of the following is not screen object property?
1.width
2.colorDepth
3.pixelDepth
4. language
Which of the following is not the fade method in jQuery?
1.fadeTo()
2.fadeOn()
3.fadeOut()
4.fadeIn()
Which of the following is not the jQuery method for manipulation?
1.stop()
2.html()
3. text()
4.val()
Which of the following is not the sliding method in jQuery?
1. slideToggle()
2.slideDown()
3. slideUp()
4.slideIn()
Which of the following is not window object method?
1.blur()
2. close()
3. confirm()
4.unescape()
Which of the following is not window object property?
1.defaultStatus
2.closed
3.constructor
4. frames
Which of the following is the Navigator object method?
1. javaEnabled()
2.moveBy()
3. scroll()
4.stop()
Which of the following is used for parsing JSON text?
1.jQuery.each()
2.jQuery.parseJSON()
3. jQuery.noConflict()
4. jQuery.conflict()
Which one is not regular expression object method?
1. test()
2. exec()
3.compile()
4. each()