C# (C Sharp) Flashcards

1
Q

Variables declaration in C#

A

Unlike C++ or C there is no need to declare a variable with a specific datatype.

Instead we use:
var ___

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Resilience of C#

A

C# will not crash if we try to access elements outside of the array, eg if array has 3 elements and we try to access element 5.
It also won’t crash if we define 2 variables, yet we call out 3. The third one will be set to zero.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens at compile time

A

The code is turned into “Assembly” files. Intermediate Language file is created.

Note: CPU doesn’t understand those files.
The files need to be converted to binary code through an Execution Engine.

Execution Engine compiles the binary file on a JIT (Just-in-Time) basis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Common Language Runtimes (CLR)

A

.NET 6 (Cross platform)
.NET Framework (legacy version, specific to Windows)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Base Class Libraries (BCL)

A

Libraries included in C#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly