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
Questions
A ‘Queue’ Collection provides ‘first-in-first-out’ functionality:
- True
- False
You can create COM Dll’s using VB.NET
- True
- False
How do you create method which can be accessed without the use of objects reference ?
- Using FRIEND Keyword
- Using STATIC Keyword
- Using SHARED Keyword
- NONE
Which of the following can be used to run other application or batch file from VB.Net
- System.Diagnostics.Process
- System.App.Run
- System.Diagnostics.Run
- System.Fileapp.Execute
What is the operator that is used to cast up & down the inheritance hierarchy?
- Casting
- DirectCast
- InheritenceCast
- LevelCasting
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
- Run Time Error
- Compiler Error
- StackOverflow Exception
- NONE
Which program will you use to assemble a program written in IL
- ilasm
- ildasm
- clr
- NONE
Assembly manifest contains
- Assembly’s Identity
- Assembly’s Reference List
- Both A & B
- NONE
Static means one per class, not one for each object
- True
- False
A final class can be extended
- True
- False
Vector is synchronized whereas arraylist is not.
- True
- False
Map is Interface and Hashmap is class that implements Map
- True
- False
A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
- True
- False
- What does XML stand for?
- eXtra Modern Link
- eXtensible Markup Language
- Example Markup Language
- X-Markup Language
- What does DTD stand for?
- Direct Type Definition
- Document Type Definition
- Do The Dance
- Dynamic Type Definition
Comment in XML document is given by
- <?-- -->
- <!-- --!>
- <!-- -->
- </-- -- >
What is the correct syntax of the declaration which defines the XML version?
- <xml version="1.0" />
- <?xml version="1.0"?>
- <?xml version="1.0" />
- None of the above
Well formed XML document means
- it contains a root element
- it contain an element
- it contains one or more elements
- must contain one or more elements and root element must contain all other elements
For XML Parser to ignore a certain section of XML Document, which syntax is correct?
- <![CDATA[Text to be ignored]]>
- <PCDATA>Text to be ignored</PCDATA>
- <CDATA>Text to be ignored</CDATA>
- <xml:CDATA[Text to be ignored]>
Which of the following statements is false?
- XSLT is a subset of XSL
- XSLT uses XPath
- XSLT is not a W3C Recommendation
- XSLT is written in XML