• الصفحة الرئيسية
  • إتصل بنا
  • سياسة الخصوصية
Logo
  • الرئيسية
  • أفكار
  • صحة
  • معلومات
  • عجائب وغرائب
  • تكنولوجيا
الصفحة الرئيسية JavaScript Multiple Choice Question (MCQ) MCQ on Scripting Documents in Client Side JavaScript set-7

MCQ on Scripting Documents in Client Side JavaScript set-7

الكاتب ahmed في 10:32 PM JavaScript Multiple Choice Question (MCQ)
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 <form> with a name="address" attribute.

i) window.address

ii) document.address

iii) document.forms.address

iv) document.forms[n]

A. i, ii and iii only

B. ii, iii and iv only

C. i, ii and iv only

D. All i, ii, iii and iv


9) .......... method returns a selection object that describes the current selection as a sequence of one or more range objects.

A. window.objectSelection()

B. window.getSelection()

C. document.getSelection()

D. document.currentSelection()


10) State whether the following statements are True or False for the document.write() method in client side JavaScript.

i) The document.write() method was one of the very first scriptable APIs implemented by Netscape2 web browser.

ii) document.write() concatenates its string arguments and inserts the resulting string into the document at the location of the script element that invoked it.

iii) The document.write() method is commonly used in modern code i.e. innerHTML property and other DOM techniques.

A. i-True, ii-True, iii-False

B. i-True, ii-False, iii-False

C. i-True, ii-True, iii-True

D. i-False, ii-False, iii-True



11) When a document contains scrollable elements with overflowing content, the ............ method doesn't work correctly because it does not take scroll bar position into account.

A. getElementPosition()

B. getScrollPosition()

C. getScrollOffsets()

D. getBoundingClientRect()


12) .......... method is used in the case of passing the coordinates of the mouse pointer to determine which element the mouse is over.

A. getBoundingClientRect()

B. getElementFromPoint()

C. elementFromPoint()

D. getElementCoordinates()


13) The .......... method of the window is similar to scroll() and scrollTo(), but its arguments are relative and are added to the current scroll bar offsets.

A. scrollTop()

B. scrollBy()

C. scrollLeft()

D. scrollIntoView()


14) The ......... method ensures that the element on which it is invoked is visible in the view-port.

A. scrollTop()

B. scrollBy()

C. scrollLeft()

D. scrollIntoView()


15) The .......... property specifies which element the properties are relative to and if it is null, the properties are document object.

A. offsetLeft

B. offsetTop

C. offsetParent

D. offsetRelative


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

For more Multiple Choice Questions (MCQs): Click Here

شارك المقال :
Tweet
✚

مقالات ذات صلة

التالي
المشاركةالتالية
السابق
المشاركة السابقة

تحويل كودإخفاء محول الأكواد الإبتساماتإخفاء

شكرا لمشاركتنا رأيك
Subscribe to: Post Comments (Atom)
  • Facebook
  • twitter
  • googleplus
  • youtube
  • linkedin

الأكثر زيارة

  • What is Information ?
    Information  can be defined as data that has been processed into a form that is meaningful to the recipient and is of real or perceived valu...
  • What is Information Technology?
    Definitions of  Information technology  ( IT ) It is a branch of engineering dealing with the use of computers and telecommunications equipm...
  • بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017
    بالصور الفائزة بمسابقة ملكة جمال مصر 2017 لن تصدق من هي فرح صدقي ↓↓  لمشاهدة الصور والخبر كامل اضغط هنا  ↓↓ رابط المو...
  • Interview Questions on Stack and Queue in Data Structure set-2
    1) The queue in which the insertion takes place in the first position after of last element is a ...... A. priority B. dequeue C. circular D...
  • List of Top 65 Search Engine Submission Add URLs.
    List of Top 65 Search Engine Submission Add URLs.
    To get your site on the top ranking on the search engine results, Your site or URL must be indexed by Search Engines. For that you have to s...
  • List of Best Keyword Research Tools for Better SEO
    List of Best Keyword Research Tools for Better SEO
    Everyone needs to do keyword research work for the site before starting search engine optimization work as the first and most essential tas...
  • What are the different types of scheduling methods?
    Process scheduling is one way for a processor to handle n processes , by scheduling the execution process. Each process is executed one by ...
  • Solved MCQ on Database Backup and Recovery in DBMS set-1
    1) Which of the following is not a recovery technique? A. Deferred update B. Immediate update C. Two-phase commit D. Recovery management 2)C...
  • Solved MCQ on Distributed Database Transaction Management set-4
    1) Commit and rollback are related to .......... A. data integrity B. data consistency C. data sharing D. data security 2) The transaction w...
  • Solved MCQ on Fundamental of DBMS set-10
    1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relatio...

الأقسام

  • Artificial Intelligence(AI)
  • Backlinking
  • Basic IT
  • Best List
  • Blogging Tips
  • C
  • C#
  • C++
  • Computer Architecture
  • Computer Fundamental
  • Computer Security
  • Computer/IT Officer Exam
  • CSS
  • Data Mining and Warehousing
  • Data Recovery Tools
  • Data Structure
  • Database Management System
  • E-commerce
  • E-government
  • Internet & Web Designing
  • IT Law
  • IT Tips and Tricks
  • IT Tutorials
  • Java
  • JavaScript
  • Keyword Research Tools
  • MIS
  • Multiple Choice Question (MCQ)
  • Networking
  • Online Earning
  • Online IT Jobs
  • Operating System
  • Oracle Forms and Reports
  • Programming Guide
  • Programming Language
  • SEO
  • Social Networking Sites
  • Software Download
  • Software Engineering
  • System Analysis and Design
  • Top List
  • VB.Net
  • صحة
  • عجائب وغرائب

الأرشيف

  • ►  2017 (4)
    • ►  November (3)
    • ►  October (1)
  • ►  2016 (5)
    • ►  April (5)
  • ▼  2015 (87)
    • ►  August (1)
    • ►  July (8)
    • ▼  June (13)
      • Top 10 Questions that Computer Beginner may Asked
      • How to Know Your Computer Configuration Easily
      • Top 5 Free Methods to Make Your Computer Faster
      • How to Keep Computer from Sleeping
      • How to Share Printer for Computers on LAN
      • How to Share Drive Folder and File in Computer Net...
      • Solved Objective Questions on jQuery Library set-1
      • Solved MCQ on Handling Events in Client Side JavaS...
      • MCQ on Scripting Documents in Client Side JavaScri...
      • MCQ on Scripting Documents in Client Side JavaScri...
      • Solved MCQ on Scripting Documents in JavaScript set-5
      • Solved MCQ on JavaScript Window Object set-4
      • Solved MCQ on Basic Client Side JavaScript set-3
    • ►  May (2)
    • ►  April (2)
    • ►  March (4)
    • ►  February (20)
    • ►  January (37)
  • ►  2014 (77)
    • ►  December (31)
    • ►  November (4)
    • ►  September (4)
    • ►  August (11)
    • ►  July (8)
    • ►  June (2)
    • ►  May (2)
    • ►  April (2)
    • ►  March (2)
    • ►  February (7)
    • ►  January (4)
  • ►  2013 (132)
    • ►  December (11)
    • ►  November (6)
    • ►  October (4)
    • ►  September (6)
    • ►  August (16)
    • ►  July (9)
    • ►  June (9)
    • ►  May (12)
    • ►  April (13)
    • ►  March (23)
    • ►  February (6)
    • ►  January (17)
  • ►  2012 (59)
    • ►  December (15)
    • ►  November (20)
    • ►  October (21)
    • ►  September (3)

إنضم لنا

© 2017 أفكار جميع الحقوق محفوظة