What is the output of the messagebox function in following codeClass Test Dim A, B, C as Byte, Sub Main() A=200 B=100 C=A+B Console.WriteLine ( C )End subEnd Class
A) Prints 300 as the outputB) Prints “C”C) Compiler ErrorD) RunTime ErrorExplanation: Over flow exception as the sum of 2 bytes is always long
What is the out put of the following codeMustInherit class MyFirstclassPublic Dim Num as IntegerPublic Sub New( I as integer) Num=iEnd SubEnd ClassClass Test Dim cls as New MyFirstclass( 100) Console.writeLine (cls.Num)End Class
A) Can not Create an Instance of MyfirstClassB) MyFirstclass is created and 100 is assigned to Num variableC) Runtime Error
Whats the output of following codeClass A Public Overridable Sub F() End SubEnd ClassClass B Inherits A Public Overridable Sub F() End SubEnd Class
A) Runtime ErrorB) Compiler ErrorC) Compiler Throws a warning message
A) Code modules are instantiated at runtime and class modules are instantiated at the time of designB) Class modules are instantiated at runtime to create objects and code modules do not have instancesC)
Latest Answer : B ...
A) System.Runtime.InteropservicesB) System.XMLC) System. DataExplanation: Interopservices has all the classes, which related to COM
What is runtime host?