NEW
Font size
WorksheetsSelf-Check
Total questions: 20
Worksheet time: 16mins
Which component of the .NET (Core/5+) platform is primarily responsible for managing the execution, memory, and security of compiled C# code, including Just-In-Time (JIT) compilation?
The C# Compiler (CSC)
The Base Class Library (BCL)
The .NET Software Development Kit (SDK)
The Common Language Runtime (CLR)
What is the default value of an uninitialized element in an integer array in C#?
0
-1
null
undefined
Which of the following statements correctly initializes an array of strings in C#?
string[] names = new string[5];
string[] names = new string;
string names = new string[5];
string names[] = new string[5];
In C#, how do you access the last element of an array named 'scores' with a length of 10?
scores[10]
scores[9]
scores[length]
scores[last]
What is the maximum number of dimensions an array can have in C#?
1
No limit
2
3
Which of the following correctly retrieves the first element of an array named 'data'?
data[1st]
data[0]
data[1]
data[first]
In C#, what happens if you try to access an index that is out of bounds in an array?
The program crashes
You get a run-time error
It returns 0
It returns null
What is the primary purpose of a WinForms application?
To create web-based applications that run in a browser.
To manage server-side logic and databases for enterprise systems
To develop cross-platform mobile applications for iOS and Android.
To build desktop applications with a graphical user interface for the Windows operating
system.
