Description: programming languages Online Quiz - 140 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What is the problem,if any in the following code: struct Sample { int a; Sample() { a=0; } }; class Sample2:public Sample { }; struct Sample3:protected Sample2{};
Which of the following operators cannot be overloaded?
Which of the following describes the correct syntax for overloading new operator for arrays
static keyword can be used with virtual functions.
Which of the following signifies implementation inheritance?
In the above code, the call to the factorial() throws StackOverflowException. Will the finally block gets executed and prints the "finally" message to the user?
Can we invoke the garbage collector explicitly?
What is the difference between the S.ToString() and Convert.ToString(S) in the given scenario?
How can we prevent a class from Instantiating?
For the C# Compiler (csc.exe), which option is the default output type among the given Output options ?
Which of the following statements correctly declares a 2 dimensional array in c#?
Are private class-level variables inherited?
Can Abstarct class have a constructor?
What’s the .NET datatype that allows the retrieval of data by a unique key?
If a class has a Static Constructor and a Public Constructor,Which one is invoked first upon object initialization?
A transient variable may be serialized.
The java.lang package is always imported by default.
true and false are keywords in JAVA
A garbage collected object can be reached again.