programming languages Online Quiz - 163

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

Which command compiles a Java application named FirstApp?

  1. javac FirstApp

  2. javac FirstApp.java

  3. java FirstApp

  4. java FirstApp.class

Correct Option: B

Which class creates a mutable string that can be used by multiple threads?

  1. String

  2. StringBuffer

  3. StringBuilder

  4. none

Correct Option: B
  1. Create a Salary object

  2. Declare an Employee class

  3. Declare an instance of the Employee class called Promotion

  4. Declare a promotion method that changes the value of the position variable

  5. Define variables for position and salary

Correct Option: B,D,E

Which of the following are true?

  1. Tags in XML cannot contain spaces in them.

  2. Tag Names can start with a character (A-Z) or an _(Underscore)

  3. Tag Names starting with Underscore cannot have another Underscore in them.

  4. Tag Names cannot start with an Underscore

Correct Option: A,B,C
  1. All Valid SGML Documents are Valid XML Documents

  2. XML Can Contain HTML tags

  3. XML is less Complex than SGML

  4. XML can be extended using Optional SGML Extras

Correct Option: C,D
  1. A way of doing transformations in XML

  2. Used to change the layout of the XML

  3. Used to induce HTMl effects in XML

  4. None of the above

Correct Option: A,B

Identify the Markup Languages

  1. XML

  2. SGML

  3. HTTP

  4. DCF GML

Correct Option: A,B,C,D

DTD is used to

  1. Create a template of the XML hierachy

  2. Validate the XML

  3. Ensures Well Formed XML’s creation

  4. Format the XML

Correct Option: A,B,C

XSD’s are

  1. The ones which replacecs DTD’s

  2. Helps in creating wellformed XML

  3. Enforces Data Types in XML

  4. Can be inline or external

Correct Option: B,C,D

One of the Tag Names cannot hold user information(CDATA).

  1. <0~id>

Correct Option: D

Which of the following are true in case of XML

  1. XML Enforces Strict Type Checking

  2. XML are strictly non-extendable

  3. XML replaces the old HTML

  4. XML extends HTML

Correct Option: A

XML is a subset of ___________

  1. HTML

  2. WSDL

  3. JSP

  4. SGML

Correct Option: D

Physical Storage units are defined in XML by





Correct Option: D

Which statement is true?

  1. All the statements are true

  2. All XML elements must have a closing tag

  3. All XML elements must be lower case

  4. All XML documents must have a DTD

Correct Option: B
  1. It contains a root element

  2. It contain an element

  3. It contains one or more elements

  4. Must contain one or more elements and root element must contain all other elements

Correct Option: B

DTD includes the specifications about the markup that can be used within the document, the specifications consists of all EXCEPT

  1. The browser name

  2. The size of element name

  3. Entity declarations

  4. Element declarations

Correct Option: A

The use of a DTD in XML development is

  1. Required when validating XML documents

  2. No longer necessary after the XML editor has been customized

  3. Used to direct conversion using an XSLT processor

  4. A good guide to populating a templates to be filled in when generating an XML document automatically

Correct Option: A
  1. In XMl Declaration

  2. As an Attribute of Root Element

  3. In the ATTLIST

  4. In DTD

Correct Option: D
  1. Complex Content

  2. Simpel Content

  3. Hybrid Content

  4. Pre-Defined Content

Correct Option: A
  1. Are a part of XML Structure

  2. Are mandatory in XSD

  3. Are Used in Inline and External XSD

  4. None of the above

Correct Option: C
- Hide questions