Jquery/Jquery Mcq Set 2 Sample Test,Sample questions

Question:
 Arrays in JavaScript are written within _____

1. {}

2.[].

3.“”

4.()


Question:
 hover() method is the combination of _____

1.mouseleave() and mouseeneter()

2.mousedown() and mouseenter()

3.mouseup() and mousedown()

4.mouseleave() and mousedown()


Question:
 jQuery does not contain the _____________ feature.

1.AJAAX

2. AJAX

3. CSS manipulation

4.Effects and animations


Question:
 Which is not the location object method?

1.stop()

2.reload()

3.assign()

4.replace()


Question:
 Which is not the method of History object?

1.go()

2.moveBy()

3.forward()

4.back()


Question:
 Which is the method that operates on the return value of $()?

1.show()

2.css()

3. click()

4. done()


Question:
 Which method is not used for CSS manipulation?

1. toggleClass()

2. removeClass()

3.beforeClass()

4. css()


Question:
 Which of the following is a factory function?

1.$()

2. jQuery()

3.Queryanalysis()

4.onclick()


Question:
 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


Question:
AJAX is not used in ______

1.Gmail

2.Youtube

3.Facebook

4.Yahoo


Question:
Correct syntax for $.post() method is ______

1.$.post(URL,data,callback)

2. $.post(URL,data)

3.$.post(URL,callback)

4. $.post(data,callback)


Question:
External scripts can’t take the tag ____

1. <script>

2.<form>

3.<h1>

4.<title>


Question:
For converting string to array we can use ______ method.

1. charAt()

2. charCodeAt()

3.split()

4.toLowerCase()


Question:
In JavaScript, which one is used to finding the non-whitespace characters?

1.d

2. s

3.S

4.w


Question:
In jQuery all the elements are selected by writing ______

1. $(this)

2. $(“:button”)

3.$(“*”)

4. $(“.class_name”)


Question:
Negative positions for string do not work in ______

1. Internet Explorer 8

2.Chrome

3. Safari

4.Opera


Question:
The integers in JavaScript are precise up to ______

1.12 digits

2.10 digits

3.23 digits

4. 15 digits


Question:
The method not used to add new content is _____

1.after()

2.prepend()

3.before()

4.add()


Question:
The method releases jQuery’s control of $ is ______

1.$.param()

2. $.noConflict()

3.each()

4.data()


Question:
typeof “null” in JavaScript is _______

1.number

2.string

3.object

4.Undefined


Question:
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


Question:
What is the correct syntax of jQuery?

1.action().$(selector)

2. $(selector).action()

3. (selector)$.action()

4.action().(selector)$


Question:
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


Question:
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


Question:
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


Question:
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


Question:
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


Question:
Which is not a JavaScript global function?

1.compile()

2.eval()

3.decodeURI()

4.isNaN()


Question:
Which is not the property of location object?

1.origin

2.port

3. host

4. geolocation


Question:
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");


Question:
Which method is not for traversing DOM tree sideways?

1.parent()

2. siblings()

3. prev()

4.nextAll()


Question:
Which method is not used for filtering in jQuery?

1.next()

2. first()

3.eq()

4. last()


Question:
Which method is not used for traversing DOM tree?

1.parent()

2.parentsUntil()

3.parents()

4.after()


Question:
Which of the following is a heavily overloaded function?

1. jQuery()

2.$()

3. script()

4. Both jQuery() and $()


Question:
Which of the following is a single global function defined in the jQuery library?

1. jQuery()

2. $()

3.Queryanalysis()

4.global()


Question:
Which of the following is a utility function in jQuery?

1. jQuery.each()

2. jQuery.parseJSON()

3.jQuery.noConflict()

4.jQuery.conflict()


Question:
Which of the following is an equivalent replacement of $(document).ready(f)?

1. jQuery(f)

2.$(f)

3. #(f)

4.read(f)


Question:
Which of the following is not a jQuery dimension method?

1. innerWidth()

2. outerHeight()

3.height()

4.css()


Question:
Which of the following is not a method of AJAX?

1. get()

2.getJSON()

3. post()

4.stop()


Question:
Which of the following is not event method in jQuery?

1.click()

2. mouseenter()

3. mousedown()

4.hide()


Question:
Which of the following is not navigator object property?

1.appVersion

2.geolocation

3.document

4.cookieEnabled


Question:
Which of the following is not screen object property?

1.width

2.colorDepth

3.pixelDepth

4. language


Question:
Which of the following is not the fade method in jQuery?

1.fadeTo()

2.fadeOn()

3.fadeOut()

4.fadeIn()


Question:
Which of the following is not the jQuery method for manipulation?

1.stop()

2.html()

3. text()

4.val()


Question:
Which of the following is not the sliding method in jQuery?

1. slideToggle()

2.slideDown()

3. slideUp()

4.slideIn()


Question:
Which of the following is not window object method?

1.blur()

2. close()

3. confirm()

4.unescape()


Question:
Which of the following is not window object property?

1.defaultStatus

2.closed

3.constructor

4. frames


Question:
Which of the following is the Navigator object method?

1. javaEnabled()

2.moveBy()

3. scroll()

4.stop()


Question:
Which of the following is used for parsing JSON text?

1.jQuery.each()

2.jQuery.parseJSON()

3. jQuery.noConflict()

4. jQuery.conflict()


Question:
Which one is not regular expression object method?

1. test()

2. exec()

3.compile()

4. each()


More MCQS

  1. Jquery Mcq Set 1
  2. Jquery Mcq Set 2
  3. Jquery Mcq Set 3
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!