Jquery/Jquery Mcq Set 2 Sample Test,Sample questions

Question:
 Arrays in JavaScript are written within _____

1. {}

2.[].

3.“”

4.()

Posted Date:-2022-01-18 05:25:28


Question:
 hover() method is the combination of _____

1.mouseleave() and mouseeneter()

2.mousedown() and mouseenter()

3.mouseup() and mousedown()

4.mouseleave() and mousedown()

Posted Date:-2022-01-18 05:18:55


Question:
 jQuery does not contain the _____________ feature.

1.AJAAX

2. AJAX

3. CSS manipulation

4.Effects and animations

Posted Date:-2022-01-18 05:17:18


Question:
 Which is not the location object method?

1.stop()

2.reload()

3.assign()

4.replace()

Posted Date:-2022-01-18 05:16:14


Question:
 Which is not the method of History object?

1.go()

2.moveBy()

3.forward()

4.back()

Posted Date:-2022-01-18 05:15:44


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

1.show()

2.css()

3. click()

4. done()

Posted Date:-2022-01-18 04:58:36


Question:
 Which method is not used for CSS manipulation?

1. toggleClass()

2. removeClass()

3.beforeClass()

4. css()

Posted Date:-2022-01-18 05:21:39


Question:
 Which of the following is a factory function?

1.$()

2. jQuery()

3.Queryanalysis()

4.onclick()

Posted Date:-2022-01-18 04:57:43


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

Posted Date:-2022-01-18 04:56:52


Question:
AJAX is not used in ______

1.Gmail

2.Youtube

3.Facebook

4.Yahoo

Posted Date:-2022-01-18 05:23:38


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

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

2. $.post(URL,data)

3.$.post(URL,callback)

4. $.post(data,callback)

Posted Date:-2022-01-18 05:04:17


Question:
External scripts can’t take the tag ____

1. <script>

2.<form>

3.<h1>

4.<title>

Posted Date:-2022-01-18 05:24:13


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

1. charAt()

2. charCodeAt()

3.split()

4.toLowerCase()

Posted Date:-2022-01-18 05:31:42


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

1.d

2. s

3.S

4.w

Posted Date:-2022-01-18 05:10:07


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

1. $(this)

2. $(“:button”)

3.$(“*”)

4. $(“.class_name”)

Posted Date:-2022-01-18 05:18:06


Question:
Negative positions for string do not work in ______

1. Internet Explorer 8

2.Chrome

3. Safari

4.Opera

Posted Date:-2022-01-18 05:25:51


Question:
The integers in JavaScript are precise up to ______

1.12 digits

2.10 digits

3.23 digits

4. 15 digits

Posted Date:-2022-01-18 05:32:21


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

1.after()

2.prepend()

3.before()

4.add()

Posted Date:-2022-01-18 05:21:18


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

1.$.param()

2. $.noConflict()

3.each()

4.data()

Posted Date:-2022-01-18 05:05:47


Question:
typeof “null” in JavaScript is _______

1.number

2.string

3.object

4.Undefined

Posted Date:-2022-01-18 05:25:05


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

Posted Date:-2022-01-18 04:59:01


Question:
What is the correct syntax of jQuery?

1.action().$(selector)

2. $(selector).action()

3. (selector)$.action()

4.action().(selector)$

Posted Date:-2022-01-18 05:17:40


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

Posted Date:-2022-01-18 05:03:13


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

Posted Date:-2022-01-18 05:02:12


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

Posted Date:-2022-01-18 05:02:46


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

Posted Date:-2022-01-18 05:01:15


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

Posted Date:-2022-01-18 05:01:43


Question:
Which is not a JavaScript global function?

1.compile()

2.eval()

3.decodeURI()

4.isNaN()

Posted Date:-2022-01-18 05:11:12


Question:
Which is not the property of location object?

1.origin

2.port

3. host

4. geolocation

Posted Date:-2022-01-18 05:16:36


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

Posted Date:-2022-01-18 04:58:10


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

1.parent()

2. siblings()

3. prev()

4.nextAll()

Posted Date:-2022-01-18 05:22:49


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

1.next()

2. first()

3.eq()

4. last()

Posted Date:-2022-01-18 05:23:14


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

1.parent()

2.parentsUntil()

3.parents()

4.after()

Posted Date:-2022-01-18 05:22:30


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

1. jQuery()

2.$()

3. script()

4. Both jQuery() and $()

Posted Date:-2022-01-18 04:59:26


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

1. jQuery()

2. $()

3.Queryanalysis()

4.global()

Posted Date:-2022-01-18 04:57:18


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

1. jQuery.each()

2. jQuery.parseJSON()

3.jQuery.noConflict()

4.jQuery.conflict()

Posted Date:-2022-01-18 05:00:20


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

1. jQuery(f)

2.$(f)

3. #(f)

4.read(f)

Posted Date:-2022-01-18 04:59:55


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

1. innerWidth()

2. outerHeight()

3.height()

4.css()

Posted Date:-2022-01-18 05:22:00


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

1. get()

2.getJSON()

3. post()

4.stop()

Posted Date:-2022-01-18 05:03:48


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

1.click()

2. mouseenter()

3. mousedown()

4.hide()

Posted Date:-2022-01-18 05:18:28


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

1.appVersion

2.geolocation

3.document

4.cookieEnabled

Posted Date:-2022-01-18 05:12:28


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

1.width

2.colorDepth

3.pixelDepth

4. language

Posted Date:-2022-01-18 05:15:24


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

1.fadeTo()

2.fadeOn()

3.fadeOut()

4.fadeIn()

Posted Date:-2022-01-18 05:20:08


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

1.stop()

2.html()

3. text()

4.val()

Posted Date:-2022-01-18 05:20:56


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

1. slideToggle()

2.slideDown()

3. slideUp()

4.slideIn()

Posted Date:-2022-01-18 05:20:35


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

1.blur()

2. close()

3. confirm()

4.unescape()

Posted Date:-2022-01-18 05:12:02


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

1.defaultStatus

2.closed

3.constructor

4. frames

Posted Date:-2022-01-18 05:11:39


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

1. javaEnabled()

2.moveBy()

3. scroll()

4.stop()

Posted Date:-2022-01-18 05:12:55


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

1.jQuery.each()

2.jQuery.parseJSON()

3. jQuery.noConflict()

4. jQuery.conflict()

Posted Date:-2022-01-18 05:00:44


Question:
Which one is not regular expression object method?

1. test()

2. exec()

3.compile()

4. each()

Posted Date:-2022-01-18 05:10:50


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!