1) .......... method of the window object takes the X and Y coordinates of a point in document coordinates and sets these as the scroll bar offsets.
A. scrollTo()
B. scrollLeft()
C. scrollTop()
D. scrollFor()
2) We can compute the position of the element with ..........., converts that position to document coordinates and then use the scrollTo() method.
A. getBoundingClient()
B. getBounding()
C. getBoundingClientRect()
D. getBoundingRect()
3) The read-only .......... properties of any HTML element return its on screen size, in CSS pixels.
A. offsetWidth()
B. offsetHeight()
C. Both A and B
D. None of the above
4) ......... are like offesetWidth and offesetHeight except that they do not include the border size, only content area and its padding.
A. offesetLeft and offesetTop
B. clientWidth and clientHeight
C. clientLeft and clientTop
D. scrollWidth and scrollHeight
5) ............. properties return the horizontal and vertical distance between the outside of an element's padding and the outside of its border.
A. offesetLeft and offesetTop
B. clientWidth and clientHeight
C. clientLeft and clientTop
D. scrollWidth and scrollHeight
6) ........... are the size of an element's content area plus its padding plus any overflowing content.
A. offesetLeft and offesetTop
B. clientWidth and clientHeight
C. clientLeft and clientTop
D. scrollWidth and scrollHeight
7) Which of the following expressions in JavaScript is/are True, if we have to select a form name "address" has a first element with name "street".
A. document.forms.address[0]
B. document.forms.address.street
C. document.address.street
D. All of the above
8) Which of the following is/are the valid expressions, if we have to select a
A. scrollTo()
B. scrollLeft()
C. scrollTop()
D. scrollFor()
2) We can compute the position of the element with ..........., converts that position to document coordinates and then use the scrollTo() method.
A. getBoundingClient()
B. getBounding()
C. getBoundingClientRect()
D. getBoundingRect()
3) The read-only .......... properties of any HTML element return its on screen size, in CSS pixels.
A. offsetWidth()
B. offsetHeight()
C. Both A and B
D. None of the above
4) ......... are like offesetWidth and offesetHeight except that they do not include the border size, only content area and its padding.
A. offesetLeft and offesetTop
B. clientWidth and clientHeight
C. clientLeft and clientTop
D. scrollWidth and scrollHeight
5) ............. properties return the horizontal and vertical distance between the outside of an element's padding and the outside of its border.
A. offesetLeft and offesetTop
B. clientWidth and clientHeight
C. clientLeft and clientTop
D. scrollWidth and scrollHeight
6) ........... are the size of an element's content area plus its padding plus any overflowing content.
A. offesetLeft and offesetTop
B. clientWidth and clientHeight
C. clientLeft and clientTop
D. scrollWidth and scrollHeight
7) Which of the following expressions in JavaScript is/are True, if we have to select a form name "address" has a first element with name "street".
A. document.forms.address[0]
B. document.forms.address.street
C. document.address.street
D. All of the above
8) Which of the following is/are the valid expressions, if we have to select a
Answers:
1) A. scrollTo()
2) C. getBoundingClientRect()
3) C. Both A and B
4) B. clientWidth and clientHeight
5) C. clientLeft and clientTop
6) D. scrollWidth and scrollHeight
7) D. All of the above
8) D. All i, ii, iii and iv
9) B. window.getSelection()
10) A. i-True, ii-True, iii-False
11) A. getElementPosition()
12) C. elementFromPoint()
13) B. scrollBy()
14) D. scrollIntoView()
15) C. offsetParent
Related Posts:
Solved MCQ of JavaScript set-1
MCQ of JavaScript with Answer set-2
Solved MCQ on Basic Client Side JavaScript set-3
Solved MCQ on JavaScript Window Object set-4
Solved MCQ on Scripting Documents in JavaScript set-5
MCQ on Scripting Documents in Client Side JavaScript set-6
Objective Questions of CSS with Answer set-3
Solved Objective Questions of CSS set-4
Solved MCQ of Java Set-1
Solved MCQ of Java Beans set-1
Solved MCQ of Internet and HTML set-3