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

Excel Template

1) The val() method in jQuery is used to set the value of an element. 2) jQuery is a JavaScript library that uses the $ sign as a shortcut. 3) The $("p") selector in jQuery will select all paragraph elements.

Uploaded by

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

Excel Template

1) The val() method in jQuery is used to set the value of an element. 2) jQuery is a JavaScript library that uses the $ sign as a shortcut. 3) The $("p") selector in jQuery will select all paragraph elements.

Uploaded by

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

Question Option A Option B

Which of the following jQuery method set the value of


an element? setContent( val ) val( val )
JavaScript
jQuery is a JavaScript Library Language

Which sign does jQuery use as a shortcut for jQuery? the % sign the ? sign
jQuery is free and open source. Yes No

Look at the following selector: $("div"). What does it


select? all div elements first div element

Is jQuery a library for client scripting or server scripting? server scripting client scripting

an HTML
element
an HTML element references references its
$(this) in jQuery is used when - the entire document own action

Which of the following jQuery method is used to hide The hide()


the selected elements? The hidden() method method
Which jQuery method is used to set one or more style The style()
properties to the selected element? The html() method method
$
("h1").html("back
The correct syntax to set the background color of all h1 $("h1").style("background- ground-
elements to yellow in jQuery color","yellow"); color","yellow");
Which of the following jQuery method is used to attach
a handler to an event? unbind() method attach() method
Which of the following jQuery method is used to stop
jQuery for few milliseconds? stop() method delay() method
The first
paragraph
The first paragraph element element with id =
 What does the syntax $("p.para") will select? with class = "para" "para"
$
 Which of the jQuery function prevents the code from (document).unloa
running before the loading of the document finishes? $(document).load() d()
The jQuery used to find all next sibling elements after
the current element is - find() method nextAll() method
 The correct syntax for selecting the first paragraph
element with id p1 is - $("p.p1:first") $("p#p1:first")
Which of the following jQuery method is used to check
whether or not the selected elements have the specified addClass()
class name? hasClass() method method
The jQuery method used to set the width property of an width( val )
element is -------- setWidth( val ) method method
The jQuery method used to get all ancestors of the
matched set of elements is  parents() method parent() method
 The jQuery method used to remove the set of matched
elements is - delete() method empty() method
It will select all
elements with id
= "myDiv" within
It will select all elements with the div element
class = "para" within the div with class =
What does the syntax $("div#myDiv .para") will select? element with id = "myDiv" "para"

Which of the following jQuery method is used to reduce


the set of matched elements to a single element? isEqual() method val() method
If the names of local, global variables are the same,
then which of the following type of variable takes
precedence? local variable global variable
Which of the following is the correct code in jQuery to $("div").height =
make all div elements 150px high? $("div").height(150); "150" ;
Content delivery
network /
Content
Content development distribution
CDN stands for -------- network network
The jQuery method used to find all previous sibling
elements of the current element is - nextAll() method prevAll() method
The jQuery method used to return the direct parent parentAll()
element of the selected element is parents() method method
Can we use multiple document.ready() function on Yes No
document("p").cs
 The code $("p").css("background-color","yellow") is jQuery("p").css("background- s("background-
equivalent to  color","yellow") color","yellow")
Only first
paragraph
What does the syntax $("p") will select? All paragraph elements element
Only first span
element inside
All span elements inside the the paragraph
 What does the syntax $("p span") will select? paragraph element element

Which of the following jQuery method returns the direct jQuery next()
children of the selected element? jQuery ancestors() method method

The jQuery has


cross-browser
support, and
works well in IE
The jQuery is very 6.0+, FF 2.0+,
lightweight library - about Safari 3.0+,
19KB in size ( Minified and Chrome and
Which of the following is correct about jQuery? gzipped ). Opera 9.0+
Which of the following jQuery selector selects element
with the given element id some-id? $('some-id') $('#some-id')
Which of the following jQuery method sets the text of an
element? text( val ) setText( val )
Which of the following jQuery method gets the style
property of an element? getClass( name ) getStyle( name)
Option C Option D Option E Option F Rgith Answer Feedback

setValue( val ) C
JavaScript
Method PHP Method A

the $ sign the @ sign C


Cant say Licensed A

all elements all elements with


except div class name div A

none both A & B B

an HTML
element
references the
action of its
parent element All of the above B
The
The visible(false) display(none)
method method B

The
$ css() method All$ of the above C
("h1").css("backg ("h1").layout("bac
round- kground-
color","yellow"); color","yellow"); C
None of the
bind() method above C
slowdown()
method pause() method B
The first
paragraph All paragraph
element with elements with
name = "para" class = "para" D
$
(document).read $
y() (document).trim() C
None of the
siblings() method above B

$("p1#p:first") None of the above B

toggleClass()
find() method method A
setCSSWidth( va None of the
l ) method above B
offsetParent() None of the
method above A
None of the
remove() method above C
All div elements
with class =
"para" or with id None of the
= "myDiv" above A

delegate()
eq() method method C

None of the
both (a) & (b) above A
$("div").height = None of the
150 ; above A

Communication
development None of the
network above B
None of the
siblings() method above B
offsetParent()
method parent() method D
Can't say Not possible A
jq("p").css("back
ground- None of the
color","yellow") above A
Only last
paragraph None of the
element above A
Only last span
element inside
the paragraph None of the
element above A

jQuery children() None of the


method above C

The jQuery
supports CSS3
selectors and
basic XPath
syntax. All of the above. D
None of the
$('.some-id') above. B
None of the
setContent( val ) above. A
None of the
css( name ) above. C
Points Category Labels
1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY
1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY
1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY
1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

1 MPW-IIIY IIIY

You might also like