0% found this document useful (0 votes)
105 views6 pages

CS202 Quiz 3 by Moin Akhtar

The document contains a quiz about jQuery, JavaScript, and AJAX concepts. It includes multiple choice questions about DOM traversing, jQuery selectors, AJAX response data, and DOM relationships like ancestors and descendants.

Uploaded by

Dur hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views6 pages

CS202 Quiz 3 by Moin Akhtar

The document contains a quiz about jQuery, JavaScript, and AJAX concepts. It includes multiple choice questions about DOM traversing, jQuery selectors, AJAX response data, and DOM relationships like ancestors and descendants.

Uploaded by

Dur hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

CS202 (QUIZ NO.

3)
BY MOIN AKHTAR

________is used to Insert content at the end of the selected elements.


Select the correct option
MOIN AKHTAR
A. Append()
B. Prepend()
C. Before()
D. After()

In DOM tree, a descendant can be


Select the correct option
MOIN AKHTAR
A. Child, grand-child, great grand-child and so on.
B. Parent, grand parent, great grand-parent and so on.
C. All of the given options
D. Siblings

In JQuery, innerHeight() method returns:


Select the correct option
MOIN AKHTAR
C. height of an element including padding
A. height of an element including border
B. height of an element excluding padding
D. height of an element excluding border

To traverse sideways in the DOM Tree, is not a function.


Select the correct option
MOIN AKHTAR
B. nexts()
A. siblings()
C. next()
D. nextUntil()

What is the function of responseText in AJAX?


MOIN AKHTAR
A. get the response data as a string
B. get the response data as an integer
C. All of the given options
D. get the response data as XML data

All selectors in jQuery start with?


Select the correct option
MOIN AKHTAR
B. $()
A. #()
C. %()
D. –()

In JQuery, outerWidth() method returns:


Select the correct option
MOIN AKHTAR
A. width of an element including border and padding
B. width of an element excluding border and padding
C. width of an element including padding
D. width of an element excluding padding

Which of the following is a fast, small, and feature-rich JavaScript library?


Select the correct option
MOIN AKHTAR
B. jQuery
A. SQuery
C. FQuery
D. None of the given options
The $(document).ready) method allows us to execute a function when,
Select the correct option
MOIN AKHTAR
D. Document is fully loaded
A. None of the given options
B. Document is about to load
C. Document is partially loaded

AJAX İs about:
Select the correct option
MOIN AKHTAR
C. Both sending and receiving data from server without reloading the
whole page
A. Sending data to server without reloading the whole page
B. Both sending and receiving data from server by reloading the whole page
D. Receiving data from server without reloading the whole page

In DOM tree, a descendant can be


Select the correct option
MOIN AKHTAR
A. All of the given options
B. Parent, grand parent, great grand-parent and so on.
C. Siblings
D. Child, grand-child, great grand-child and so on.

To traverse sideways in the DOM Tree, ____ is not a function.


Select the correct option
MOIN AKHTAR
D. nexts()
A. next()
B. siblings()
C. nextUntil()
D. nexts()

All selectors in jQuery start with


Select the correct option
MOIN AKHTAR
C. $()
A. -)
B. %)
C. s()
D. #)

The $(document).ready() method allows us to execute a function when,


Select the correct option
MOIN AKHTAR
B. Document is fully loaded
A. Document is about to load
C. Document is partially loaded
D. None of the given options

_______is used to Insert content at the end of the selected elements.


Select the correct option
MOIN AKHTAR
C. Append()
A. After()
B. Before()
D. Prepend()
Which of the following property(ies) of XMLHttpRequest object is/are used to
get a response from the server?
Select the correct option
MOIN AKHTAR
A. Both responseText & responseXML
B. responseText
C. responseXML
D. None of the given options

Which of the following method(s) is/are used for traversing up the DOM tree?
Select the correct option
MOIN AKHTAR
A. parents() and grandParents()
B. grandParents()
C. parental()
D. parent()

What is the function of responseText in AJAX?


Select the correct option
MOIN AKHTAR
A. get the response data as a string
B. get the response data as an integer
C. All of the given options
D. get the response data as XML data

What is nmeant by DOM traversing in jQuery?


Select the correct option
MOIN AKHTAR
C. Select child, parent, ancestor, current, descendant and sibling
A. All of the given options
B. Find the desired elements on the basis of their relationship with other
elements
D. Select one element and move upwards or downwards to reach the required
elements

In DOM tree, an ancestor can be


Select the correct option
MOIN AKHTAR
A. Parent, grandparent, great-grandparent, and so on.
B. Siblings
C. Child, grandchild, great-grandchild, and so on.
D. All of the given options

You might also like