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.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A reference type variable in VB.NET code holds a reference to a COM object through

  1. RRW object
  2. RAW object
  3. RCW object
  4. None of the Above
Question 2 Multiple Choice (Single Answer)

Which of the following when turned on do not allow incompatible type conversion?

  1. Option Explicit
  2. Option Strict
  3. Option All
  4. All of the Above
Question 3 True/False

In JAVA 1.5, can we have two overridden methods with different return types?

  1. True
  2. False
Question 4 True/False

Serializable interface has two methods which MUST overridden when a class implemnts Serializable interface.

  1. True
  2. False
Question 5 True/False

List mylist = new ArrayList(); mylist.add(5); If you compile this lines in JAVA 1.5 , it will give compilation error.

  1. True
  2. False
Question 6 True/False

For Arrays & Collection, Sort order & search order need not to be SAME.

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

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);}

  1. runtime exception
  2. 6
  3. 7
  4. comiple error.
  5. 10
Question 8 Multiple Choice (Single Answer)

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); }

  1. Runtime exception
  2. 6
  3. 7
  4. Compile Error
  5. 11
Question 9 True/False

For Arrays & Collection, Sort order & search order need not to be SAME.

  1. True
  2. False
Question 10 True/False

List mylist = new ArrayList(); mylist.add(5); If you compile this lines in JAVA 1.5 , it will give compilation error.

  1. True
  2. False
Question 11 True/False

Serializable interface has two methods which MUST be overridden when a class implemnts Serializable interface.

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

Which are the following are valid datatypes in C?

  1. boolean
  2. int
  3. long
  4. String
Question 13 True/False

The .NET Framework class library is divided into two parts: the Basic Class Library and the Framework Class Library.

  1. True
  2. False
Question 14 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

  1. True
  2. False
Question 15 True/False

.NET Framework 1.0 released on 2001-02-13

  1. True
  2. False
Question 16 True/False

.NET Framework 2.0 Released with Visual Studio 2005, Microsoft SQL Server 2005, and BizTalk 2005.

  1. True
  2. False
Question 17 True/False

.NET Framework 3.0, formerly called WinFX.

  1. True
  2. False
Question 18 True/False

Version 3.5 of the .NET Framework was released on 9 November 2007.

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

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); }

  1. a(100, 200), b(100, 200)
  2. a(100, 200), b(700, 800)
  3. a(700, 800), b(100, 200)
  4. a(700, 800), b(700, 800)
Question 20 Multiple Choice (Single Answer)

Which operation is faster?

  1. Array
  2. Vector
  3. List
  4. Pointers