0

programming languages Online Quiz - 253

Description: programming languages Online Quiz - 253
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Compiler error: String and StringBuffer objects cannot be compared

  2. ClassCastException: String and StringBuffer objects cannot be compared

  3. Prints "true"

  4. Prints "false"


Correct Option: D
  1. String[] s =f.list();

  2. File[] files=f.list();

  3. File[] files=f.listFiles();

  4. List files=f.listFiles();


Correct Option: A,C

Which of the following are true about the readPassword() method of the Console class? choose two

  1. Its return type is String

  2. It reads the password from the console

  3. It has echoing disabled

  4. It takes a single argument

  5. None of them


Correct Option: B,C

The .NET framework which provides automatic memory management using a technique called

  1. Overriding

  2. Garbage Collection

  3. Assemblies

  4. Serialization


Correct Option: B
  1. Internet Explorer 5.0

  2. Netscape 7.1

  3. Firefox 1.0

  4. All of Above


Correct Option: D
  1. strtod()

  2. srttoi()

  3. atoi()

  4. None of these


Correct Option: C

Which method do you use to expllicitly to kill a user session?

  1. session.clear()

  2. session.dispose()

  3. Session.Abandon

  4. None


Correct Option: C
  1. 1)Page_Init 2)Page_Load.3)Control events 4)Page_Unload event.

  2. 1)Page_Init 2)Page_Unload event..3)Control events 4)Page_Load

  3. 1)Page_Load 2)Page_Init 3)Control events 4)Page_Unload event.

  4. None


Correct Option: A

In ASP.NET the < authorization > section contain which of the following elements

  1. < allow >

  2. < deny>

  3. Both 1 and 2

  4. None


Correct Option: C

Constructors have no return type, not even void.

  1. True

  2. False


Correct Option: A

Constructors name is not same as their class name

  1. True

  2. False


Correct Option: B

Constructors use "this"(keyword) to refer to another constructor in the same class with a different parameter list

  1. True

  2. False


Correct Option: A

If a constructor uses this, it must not be in the constructor's first line

  1. True

  2. False


Correct Option: B

Interfaces have constructors

  1. True

  2. False


Correct Option: A
- Hide questions