C# Fundamentals and .NET Framework

Tests core C# programming concepts including data types, variables, memory management, and data access components.

7 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A variable which is declared inside a method is called a________variable

  1. Serial
  2. Local
  3. Private
  4. Static
Question 2 Multiple Choice (Single Answer)

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
Question 3 Multiple Choice (Multiple Answers)

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.
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

Int keyword targets to which .Net type?

  1. System.Int8
  2. System.Int16
  3. System.Int32
  4. System.Int64
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

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

  1. RowChanged
  2. ColumnChanged
  3. RowChanging
  4. All of above