C# Fundamentals and .NET Framework
Tests core C# programming concepts including data types, variables, memory management, and data access components.
Questions
Question 1 Multiple Choice (Single Answer)
A variable which is declared inside a method is called a________variable
- Serial
- Local
- Private
- Static
Question 2 Multiple Choice (Single Answer)
Feature of a local variable
- It can be used anywhere in the program
- It must accept a class
- It must be declared within a method
- It represent a class object
Question 3 Multiple Choice (Multiple Answers)
Which of the following jobs are NOT performed by Garbage Collector?
- Freeing memory on the stack.
- Avoiding memory leaks.
- Freeing memory occupied by unreferenced objects.
- Closing unclosed database collections.
- Closing unclosed files.
Question 4 Multiple Choice (Single Answer)
Features of Read only variables
- It is allocated at compile time
- Declaration and initialization is separated
- It is allocated at runtime
- all of these
Question 5 Multiple Choice (Single Answer)
Int keyword targets to which .Net type?
- System.Int8
- System.Int16
- System.Int32
- 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?
- ExecuteScalar
- ExecuteReader
- ExecuteNonQuery
- None of the above
Question 7 Multiple Choice (Single Answer)
Which of the following is the event that is exposed by the DataTable object?
- RowChanged
- ColumnChanged
- RowChanging
- All of above