0
Alien head

c sharp Online Quiz - 1

Description: c sharp Online Quiz - 1
Number of Questions: 7
Created by:
Tags: c sharp
Attempted 0/7 Correct 0 Score 0

Which of the following is the event that is exposed by the DataTable object?

  1. RowChanged

  2. ColumnChanged

  3. RowChanging

  4. All of above


Correct Option: D

Which of the following method of the command object is best suited when you have aggregate functions in a SELECT statement?

  1. ExecuteScalar

  2. ExecuteReader

  3. ExecuteNonQuery

  4. None of the above


Correct Option: A

Int keyword targets to which .Net type?

  1. System.Int8

  2. System.Int16

  3. System.Int32

  4. System.Int64


Correct Option: C

Features of Read only variables

  1. It is allocated at compile time

  2. Declaration and initialization is separated

  3. It is allocated at runtime

  4. all of these


Correct Option: C

Which of the following jobs are NOT performed by Garbage Collector?

  1. Freeing memory on the stack.

  2. Avoiding memory leaks.

  3. Freeing memory occupied by unreferenced objects.

  4. Closing unclosed database collections.

  5. Closing unclosed files.


Correct Option: A,D,E

Feature of a local variable

  1. It can be used anywhere in the program

  2. It must accept a class

  3. It must be declared within a method

  4. It represent a class object


Correct Option: D

A variable which is declared inside a method is called a________variable

  1. Serial

  2. Local

  3. Private

  4. Static


Correct Option: B
+ View questions