0

programming languages Online Quiz - 269

Description: programming languages Online Quiz - 269
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

What is the super class of hash table?

  1. Dictionary

  2. Comparative

  3. HashMap

  4. Treeset


Correct Option: A

Can an exception be rethrown?

  1. True

  2. False


Correct Option: A

What are the implicit packages that need not get imported into a class file?

  1. java.object

  2. java.io

  3. java.lang

  4. java.applet


Correct Option: C

Can u overload main()method?

  1. True

  2. False


Correct Option: A

Can you make an instance of an abstract class?

  1. True

  2. False


Correct Option: A

What is XML?

  1. Extensible MarkUp Language

  2. Extra Modern Link

  3. Extensible MakeUp Language

  4. X-Markup Language


Correct Option: A

Which Statement about xml is true?

  1. Elements may have multiple atrribute with the same name

  2. Quoting attribute is optional

  3. Elements may nest but not overlap

  4. All of the above.


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Elements may have multiple attributes with the same name - This option is incorrect. In XML, elements cannot have multiple attributes with the same name. Each attribute within an element must have a unique name.

Option B) Quoting attribute is optional - This option is incorrect. In XML, attribute values must always be quoted. The quotes can be either single or double quotes, but they are required to specify the attribute value.

Option C) Elements may nest but not overlap - This option is correct. In XML, elements can be nested within each other, meaning an element can be a child of another element. However, elements cannot overlap or be positioned within each other.

Option D) All of the above - This option is incorrect because only Option C is true.

The correct answer is C. Elements may nest but not overlap. This means that elements in XML can be nested within each other, but they cannot be positioned or overlapped within each other.

What is the correct declation syntax for the version of an XML document?

  1. none of the above


Correct Option: C

How is an empty XML element defined?

  1. None of the above

  2. Option 1 & 2


Correct Option: D

Which syntax is used to insert comments into an XML document?

  1. This is a comment

  2. -This is a comment->

  3. All of the above.


Correct Option: A

AI Explanation

To answer this question, you need to understand how comments are inserted into an XML document. Let's go through each option to understand why it is correct or incorrect:

Option A) - This option is correct because it uses the correct syntax to insert comments into an XML document. In XML, comments are enclosed within `` tags.

Option B) This is a comment - This option is incorrect because it does not use the correct syntax for comments in XML. XML comments should be enclosed within tags, not tags.

Option C) -This is a comment-> - This option is incorrect because it does not use the correct syntax for comments in XML. XML comments should be enclosed within tags, not and -> tags.

Option D) All of the above. - This option is incorrect because options B and C do not use the correct syntax for comments in XML.

The correct answer is A) . This option is correct because it uses the correct syntax to insert comments into an XML document.

XML is a _______ Recommendation

  1. Microsoft

  2. Sun

  3. JAVA

  4. W3C


Correct Option: D

XML Schema is designed to

  1. be self-descriptive

  2. disply only useful data

  3. carrying request

  4. giving response.


Correct Option: A

XML uses

  1. an XHTML Schema to describe the data

  2. an XPath to describe the data

  3. an XML Schema to describe the data

  4. an XQuerya to describe the data


Correct Option: C

XML is the mother of

  1. HTML.

  2. WAP and WML

  3. XSL

  4. XSLT


Correct Option: B

XML is

  1. Not Extensible.

  2. A stylsheet

  3. Free and Extensible

  4. None of these


Correct Option: C

Which is not a correct name for an XML element?

  1. All three names are incorrect


Correct Option: B

XSL stands for

  1. EXtendable Stylesheet Language

  2. EXtensible Stylesheet Language

  3. EXtensible Style Language

  4. EXtendable Style Language


Correct Option: B

XSL consists of three parts. which are they?

  1. XSLT,Xpath,HTML

  2. XSLT,Xpath,ASP

  3. XSLT,Xpath,XSL-FO

  4. XSLT,Xpath,XHTML


Correct Option: C

AI Explanation

To answer this question, we need to understand what XSL is and its components.

XSL (Extensible Stylesheet Language) is a language used for transforming XML documents into other formats, such as HTML or PDF. It consists of three main parts:

Option A) XSLT, Xpath, HTML - This option is incorrect because HTML is not one of the main components of XSL. HTML is a markup language used for creating web pages, while XSL is used for transforming XML documents.

Option B) XSLT, Xpath, ASP - This option is incorrect. ASP (Active Server Pages) is a technology used for creating dynamic web pages, and it is not one of the main components of XSL.

Option C) XSLT, Xpath, XSL-FO - This option is correct. XSLT (Extensible Stylesheet Language Transformations) is used for transforming XML documents. XPath is a language used for navigating and selecting elements in an XML document. XSL-FO (Extensible Stylesheet Language Formatting Objects) is used for defining the layout and formatting of the transformed XML document.

Option D) XSLT, Xpath, XHTML - This option is incorrect. XHTML (Extensible Hypertext Markup Language) is a markup language that combines HTML and XML, but it is not one of the main components of XSL.

Therefore, the correct answer is Option C.

XSL processors do parses the XML source and tries to find out the matching _______ rule.

  1. template

  2. file

  3. page

  4. directory


Correct Option: A
- Hide questions