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

Solved MCQ on Scripting Documents in JavaScript set-5

الكاتب ahmed في 12:23 AM JavaScript Multiple Choice Question (MCQ)
1) The DOM defines a number of ways to select elements, by using which of the following methods we can query a document for an element or elements.

i) with a specified id attribute

ii) with a specified name attribute

iii) with the specified tag name

iv) with the specified CSS class or classes

A. i, ii and iii only

B. i, ii and iv only

C. i, iii and iv only

D. All i, ii, iii and iv



2) We can select an element based on unique ID with the ........... method of the document object.

A. getElementById()

B. getElementsById()

C. selectElementById()

D. selectElementsById()



3) The ......... attribute is only valid on a handful or HTML elements, including forms, form elements, <iframe> and <img> elements.

A. id

B. name

C. tag

D. class



4) .......... return NodeList objects and properties like document.images and document.forms are HTML Collection objects.

A. getElementsByName() and getElementsById()

B. getElementsById() and getElementsByTagName()

C. getElementsByName() and getElementsByTagName()

D. getElementsByClassName() and getElementsByTagName()



5) Like getElementsByTagName(), .......... can be invoked on both HTML documents and HTML elements, and it returns a live NodeList containing all matching descendants of the document or element.

A. getElementsById()

B. getElementsByName()

C. getElementsByClassName()

D. All of the above



6) .......... takes a single string argument containing a CSS selector and returns a Nodelist that represents all elements in the document that match the selector.

A. getElementsById()

B. getElementsByName()

C. getElementsByClassName()

D. querySelectorAll()



7) ........... is the ultimate element selection method and very powerful technique by which client side JavaScript programs can select the document elements that they are going to manipulate.

A. querySelectAll()

B. querySelector()

C. querySelectorAll()

D. querySelect()



8) The CSS selector ............ selects any <span> descendant of the element with id="log".

A. #log span

B. #log>span

C. #log=span

D. #log:span



9) The CSS selector ............ selects any <span> child of the element with id="log".

A. #log span

B. #log>span

C. #log=span

D. #log:span



10) The CSS selector .......... selects all <div> elements plus the element with id="log".

A. div #log

B. div.#log

C. div>#log

D. div, #log



11) ........... defines properties for the universal HTTP attributes such as id, title lang, and dir and event handler properties like onClick.

A. Element properties

B. HTMLElement

C. HTMLProperty

D. HTMLAttribute



12) ......... are not case sensitive, but JavaScript property names are.

A. Element properties

B. HTML element

C. HTML property

D. HTML attributes



13) .............. methods can be used to query and set non standard HTML attributes and to query and set attributes on elements of an XML document.

A. getAttribute() and setAttribute()

B. getElement() and setElement()

C. getDocument() and setDocument()

D. getHTML() and setHTML()



14) HTML elements defines two methods ............ to check for the presence of named attribute and remove an attribute entirely.

A. getAttribute() and setAttribute()

B. hasAttribute() and removeAttribute()

C. hasDocument() and removeDocument()

D. hasElement() and removeElement()



15) For XML documents the include attributes from other namespaces, can use the namespace variants of which of the following method(s).

A. getAttributeNS()

B. setAttributeNS()

C. hasAttributeNS()

D. All of the above


Answers:

1) D. All i, ii, iii and iv
2) A. getElementById()
3) B. name
4) C. getElementsByName() and getElementsByTagName()
5) C. getElementsByClassName()
6) D. querySelectorAll()
7) C. querySelectorAll()
8) A. #log span
9) B. #log>span
10) D. div, #log
11) B. HTMLElement
12) D. HTML attributes
13) A. getAttribute() and setAttribute()
14) B. hasAttribute() and removeAttribute()
15) D. All of the above


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 of CSS set-1

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