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

MCQ on Scripting Documents in Client Side JavaScript set-6

الكاتب ahmed في 11:45 PM JavaScript Multiple Choice Question (MCQ)
1) ........ method allows you to insert a string of arbitrary HTML markup "adjacent" to the specified element.

A. insertAdjacentHTML()

B. insertBeforeHTML()

C. insertAfterHTML()

D. insertAfterendHTML()


2) ..........property is used to insert plain text into a document without having to escape the angle brackets and ampersands used in HTML markup.

A. insertText

B. plainContent

C. textContent

D. plainText


3) ........... is similar to textContent property introduced by Microsoft for Internet Explorer browser.

A. insertText

B. plainContent

C. textContent

D. innerText


4) ........ does not return the content of <script> elements, also omits extraneous white-space and attempts to preserve table formatting.

A. insertText

B. innerText

C. textContent

D. plainContent


5) State whether the following statements about inserting element content as plain text are True or False.

i) The textContent and innerText properties are similar enough that we can usually use them interchangeably.

ii) innerText is treated as a read-only property for certain table elements such as <table>, <tbody> and <tr>

iii) The textContent property is a straightforward concatenation of all Text node descendants of the specified element.

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



6) To insert element content as Text Nodes, .......... property is read/write and you can set it to change the content displayed by a Text or CDATASection node.

A. nodeContent

B. nodeType

C. nodeText

D. nodeValue


7) We can create new element nodes with the ........ method of the document object which can pass the tag name of the element as the method argument.

A. createElement

B. createNode

C. createDocumentNode

D. createElementNode


8) Every node has ........... method that returns a new copy of the node and passes true to recursively copy all descendants as well, or false to only make a shallow copy.

A. importNode()

B. cloneNode()

C. copyNode()

D. passNode()


9) ........... returns a copy suitable for insertion into the document and passes true as the second argument to recursively import all descendants.

A. importNode()

B. cloneNode()

C. copyNode()

D. passNode()


10) ........ is invoked on the element node that you want to insert into, and it inserts the specified node so that it becomes the last child of that node.

A. insertBefore()

B. appendChild()

C. insertAfter()

D. appendNode()



11) .......... takes two arguments, the first argument is the node to be inserted and the second argument is the node before which that node is to be inserted.

A. insertBefore()

B. appendChild()

C. insertAfter()

D. appendNode()


12) State whether the following statements are True or False for inserting nodes.

i) If you pass null in the second argument, the insertBefore() behaves like appendChild() and inserts at the end.

ii) If you call appendChild() or insertBefore() to insert a node that is already in the document, that node will automatically be removed from its current position and reinserted at its new position.

A. i-True, ii-False

B. i-False, ii-True

C. i-False, ii-False

D. i-True, ii-True


13) A .......... is a special kind of node that serves as a temporary container for other nodes.

A. Document Node

B. Document Partial

C. Document Fragment

D. Document Temporary


14) .......... can have any number of children, which we can manipulate with appendChild(), insertBefore() and so on.

A. Document Node

B. Document Partial

C. Document Fragment

D. Document Temporary


15) The ........... method allows us to determine the current position of an element in a view-port.

A. getBoundingClientRect()

B. elementFromPoint()

C. getElementByTagName()

D. pageXoffset()


Answers:

1) A. insertAdjacentHTML()
2) C. textContent
3) D. innerText
4) B. innerText
5) C. i-True, ii-True, iii-True
6) D. nodeValue
7) A. createElement
8) B. cloneNode()
9) A. importNode()
10) B. appendChild()
11) A. insertBefore()
12) D. i-True, ii-True
13) C. Document Fragment
14) C. Document Fragment
15) A. getBoundingClientRect()


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 of CSS With Answer set-2

  • 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 أفكار جميع الحقوق محفوظة