Programming Languages & .NET Framework Quiz
Test your knowledge of multiple programming languages including Java, C#, VB.NET, and C, along with .NET Framework concepts like garbage collection, class libraries, and version history.
Questions
A reference type variable in VB.NET code holds a reference to a COM object through
- RRW object
- RAW object
- RCW object
- None of the Above
Which of the following when turned on do not allow incompatible type conversion?
- Option Explicit
- Option Strict
- Option All
- All of the Above
In JAVA 1.5, can we have two overridden methods with different return types?
- True
- False
Serializable interface has two methods which MUST overridden when a class implemnts Serializable interface.
- True
- False
List mylist = new ArrayList(); mylist.add(5); If you compile this lines in JAVA 1.5 , it will give compilation error.
- True
- False
For Arrays & Collection, Sort order & search order need not to be SAME.
- True
- False
What will be the output?public static void main(String[] args) { for (int i=0;i<= 10;i++){if( i>6) break;}System.out.println(i);}
- runtime exception
- 6
- 7
- comiple error.
- 10
What will be the output?public static void main(String[] args) { for (int i=0;i<= 10;i++) { if( i>6) break; }System.out.println(i); }
- Runtime exception
- 6
- 7
- Compile Error
- 11
For Arrays & Collection, Sort order & search order need not to be SAME.
- True
- False
List mylist = new ArrayList(); mylist.add(5); If you compile this lines in JAVA 1.5 , it will give compilation error.
- True
- False
Serializable interface has two methods which MUST be overridden when a class implemnts Serializable interface.
- True
- False
Which are the following are valid datatypes in C?
- boolean
- int
- long
- String
The .NET Framework class library is divided into two parts: the Basic Class Library and the Framework Class Library.
- True
- False
The GC runs only when a certain amount of memory has been used or there is enough pressure for memory on the system
- True
- False
.NET Framework 1.0 released on 2001-02-13
- True
- False
.NET Framework 2.0 Released with Visual Studio 2005, Microsoft SQL Server 2005, and BizTalk 2005.
- True
- False
.NET Framework 3.0, formerly called WinFX.
- True
- False
Version 3.5 of the .NET Framework was released on 9 November 2007.
- True
- False
What will be the value of Point p after methods in a and b if the value before method call is (700,800). static void changePoint ( Point p) { p.x = 100; p.y=200; } static void changePoint(Point p) { p=new Point(100,200); }
- a(100, 200), b(100, 200)
- a(100, 200), b(700, 800)
- a(700, 800), b(100, 200)
- a(700, 800), b(700, 800)
Which operation is faster?
- Array
- Vector
- List
- Pointers