0

programming languages Online Quiz - 347

Description: programming languages Online Quiz - 347
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

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


Correct Option: D

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


Correct Option: B

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

  1. True

  2. False


Correct Option: B

Which are the following are valid datatypes in C?

  1. boolean

  2. int

  3. long

  4. String


Correct Option: B,C

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

  1. True

  2. False


Correct Option: B

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


Correct Option: A

.NET Framework 1.0 released on 2001-02-13

  1. True

  2. False


Correct Option: B

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

  1. True

  2. False


Correct Option: B

.NET Framework 3.0, formerly called WinFX.

  1. True

  2. False


Correct Option: A

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

  1. True

  2. False


Correct Option: B

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)


Correct Option: B
  1. Array

  2. Vector

  3. List

  4. Pointers


Correct Option: A
- Hide questions