Programming Languages: XML, Java, and VB.NET Basics

Test your knowledge of fundamental concepts in XML markup language, Java programming, and VB.NET/.NET development

20 Questions Published

Questions

Question 1 True/False

A ‘Queue’ Collection provides ‘first-in-first-out’ functionality:

  1. True
  2. False
Question 2 True/False

You can create COM Dll’s using VB.NET

  1. True
  2. False
Question 3 Multiple Choice (Multiple Answers)

How do you create method which can be accessed without the use of objects reference ?

  1. Using FRIEND Keyword
  2. Using STATIC Keyword
  3. Using SHARED Keyword
  4. NONE
Question 4 Multiple Choice (Multiple Answers)

Which of the following can be used to run other application or batch file from VB.Net

  1. System.Diagnostics.Process
  2. System.App.Run
  3. System.Diagnostics.Run
  4. System.Fileapp.Execute
Question 5 Multiple Choice (Multiple Answers)

What is the operator that is used to cast up & down the inheritance hierarchy?

  1. Casting
  2. DirectCast
  3. InheritenceCast
  4. LevelCasting
Question 6 Multiple Choice (Multiple Answers)

What is the output of the following code in Test class Class Myclass Dim Num as Integer Private Sub New (i as integer) Num=I End sub End class Class Test Sub Main() Dim c as Myclass C=New Myclass (10) End sub End Class Num variable of Myclass is initialized to 10

  1. Run Time Error
  2. Compiler Error
  3. StackOverflow Exception
  4. NONE
Question 7 Multiple Choice (Multiple Answers)

Which program will you use to assemble a program written in IL

  1. ilasm
  2. ildasm
  3. clr
  4. NONE
Question 8 Multiple Choice (Multiple Answers)

Assembly manifest contains

  1. Assembly’s Identity
  2. Assembly’s Reference List
  3. Both A & B
  4. NONE
Question 9 True/False

Static means one per class, not one for each object

  1. True
  2. False
Question 10 True/False

A final class can be extended

  1. True
  2. False
Question 11 True/False

Vector is synchronized whereas arraylist is not.

  1. True
  2. False
Question 12 True/False

Map is Interface and Hashmap is class that implements Map

  1. True
  2. False
Question 13 True/False

A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)
  1. What does XML stand for?
  1. eXtra Modern Link
  2. eXtensible Markup Language
  3. Example Markup Language
  4. X-Markup Language
Question 15 Multiple Choice (Single Answer)
  1. What does DTD stand for?
  1. Direct Type Definition
  2. Document Type Definition
  3. Do The Dance
  4. Dynamic Type Definition
Question 16 Multiple Choice (Single Answer)

Comment in XML document is given by

  1. <?-- -->
  2. <!-- --!>
  3. <!-- -->
  4. </-- -- >
Question 17 Multiple Choice (Single Answer)

What is the correct syntax of the declaration which defines the XML version?

  1. <xml version="1.0" />
  2. <?xml version="1.0"?>
  3. <?xml version="1.0" />
  4. None of the above
Question 18 Multiple Choice (Single Answer)

Well formed XML document means

  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
Question 19 Multiple Choice (Single Answer)

For XML Parser to ignore a certain section of XML Document, which syntax is correct?

  1. <![CDATA[Text to be ignored]]>
  2. <PCDATA>Text to be ignored</PCDATA>
  3. <CDATA>Text to be ignored</CDATA>
  4. <xml:CDATA[Text to be ignored]>
Question 20 Multiple Choice (Single Answer)

Which of the following statements is false?

  1. XSLT is a subset of XSL
  2. XSLT uses XPath
  3. XSLT is not a W3C Recommendation
  4. XSLT is written in XML