Govt. Exams
Entrance Exams
Accessing an array index beyond its bounds throws an IndexOutOfRangeException at runtime.
Properties can have get and set accessors independently with different access modifiers like public get, private set.
Both methods work correctly. IsNullOrEmpty checks for null or empty, IsNullOrWhiteSpace also considers whitespace.
int[][] is a two-dimensional jagged array where each element is an array of integers of potentially different lengths.
'internal' modifier allows access within the same assembly but not from external assemblies.
The correct syntax for nullable types is 'type?' where ? makes the value type nullable, allowing null values.
sbyte range is -128 to 127. When overflow occurs without checked context, it wraps around to 127.
int is a value type. When y = x, a copy of x's value is assigned to y. Changing y doesn't affect x.
using serves two purposes: importing namespaces and automatically disposing resources through IDisposable pattern.
Jagged arrays use [][] syntax. [,] is for multidimensional arrays. int[][] allows arrays of varying lengths.