Jquery Quiz Test (26)

1.

jQuery is a javascript__ ?

A. Library

B. Framework

C. Both A and B

D. None of the above



2.

What is the right way to hide all <h2> elements?

A. $(" h2 ").hide();

B. $(" h2 ").none();

C. $(" h2 ").hide-once();

D. $(" h2 ").hide-all();



3.

Which of the following are jQuery features?

A. HTML event methods

B. Ajax

C. Utilities

D. All of the above



4.

Which companies are using the jQuery?

A. Microsoft

B. Google

C. Netflix

D. All



5.

jQuery library is a single JavaScript file__

A. Not a file

B. Absolutely not

C. False

D. True



6.

What is the basic syntax of jQuery?

A. $(selector).notion()

B. $(selector).action()

C. $(selector).callback()

D. $(selector).annonymus()



7.

What does $ sign means in jQuery?

A. Define jQuery

B. Access jQuery

C. Select jQuery

D. Both A & B



8.

Which one is responsible to find an HTML element in jquery?

A. Selector

B. Action

C. Cluster

D. None of the above



9.

What is the use of $(this) in jQuery?

A. It's work on the current element

B. It's work on the previous element

C. It's work on the next element

D. None of the above.



10.

How a selector start in jQuery?

A. $()

B. $({})

C. $(jQuery)

D. $().selector



11.

When a user click what will be happen here?

 

$(document).ready(function(){
  $("button").click(function(){
    $("#WebJourney").hide();
  });
});

A. id="WebJourney" will be show

B. id="WebJourney" will be display

C. id="WebJourney" will be delete

D. id="WebJourney" will be hide



12.

Which selector finds elements with a specific class?

A. Classic Selector

B. Class Selector

C. ID Selector

D. Get Selector



13.

What are the mouse events in JQuery?

A. click

B. dblclick

C. mouseleave

D. All of the Above



14.

What are the keyboard events in JQuery?

A. keypress

B. keyup

C. keydown

D. All three of the above



15.

Which of the following is not a document events in JQuery?

A. resize

B. scroll

C. unload

D. blur



16.

Which of the bellow one is not  a form event in JQuery?

A. change

B. focus

C. blur

D. load



17.

In JQuery the hide() method accept max __ parameter?

 

$(selector).hide(--);

A. 2

B. 3

C. 4

D. Nothing accept



18.

What of the following values can take by the optional speed parameter inside show() method?

 

$(selector).show(speed)

 

A. milliseconds

B. slow

C. fast

D. All the above



19.

What are the Jquery fade methods?

A.fadeIn()

B. fadeOut()

C. fadeToggle()

D. All the above



20.

When a callback function is executed in JQuery?

A. Before current effect finished

B. After current effect finished

C. After callback finished

D. None of the above



21.

Is there any callback parameter in the bellow code snippet?

 

$("button").click(function(){
  $("h2").show(500);
  alert("The heading is now showing");
});

 

A. No

B. Yes

C. Yes 2 parameter

D. alert behaves like a callback



22.

How many methods are chaining in the bellow example?

 

$("#chains_count").css("color", "black").slideUp(1000).slideDown(3000);

A. Three

B. Four

C. Two

D. One



23.

JQuery can not manipulate the document object model.

A. Sometimes manipulate

B. True

C. False

D. None of the above



24.

Which of the following one is not a JQuery method?

A. html()

B. math()

C. val()

D. text()



25.

What is the task of val() method in JQuery?

A. Sets or returns the value of form fields

B. Sets the content of an element

C. Sets the text content of an element

D. None of the above



26.

What you will show in alert box if hit the button__

 

$("#click_me").click(function(){
    alert($("#test").text());
  });

<p id="test">Welcome to Web Journey</p>
<button id="click_me">Click Me</button>

A. Welcome to Web Journey

B. Click Me

C. Nothing will happen

D. Both A & B



Categories