General Knowledge Flashcards

1
Q

What is C#?

A

C# is a modern, object-oriented, and type-safe programming language.

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

What are C#’s major features?

A

Garbage collected, nullable types, lambda expressions, Language Integrated Query (LINQ), asynchronous code, exception handling, and a unified type system.

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

Where are C# programs executed?

A

On .NET, a virtual execution system called the Common Language Runtime (CLR) and a set of class libraries.

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

Into what is C# source code converted when compiled?

A

Into Intermediate Language (IL), a middle point between source code and machine code.

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

Where is IL and program resources stored when compiled?

A

They get stored in an assembly.

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

How is the execution process of a C# program?

A

The assembly is loaded into the CLR and the CLR performs Just-In-Time (JIT) compilation to convert the IL code to native machine instructions.

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

What is “managed code”?

A

Code that’s executed by the CLR.

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

What is “unmanaged code”?

A

Code compiled into native machine language.

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

What does CTS mean?

A

Common Type Specification.

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

What are the key organizational concepts in C#?

A

Programs, namespaces, types, members, and assemblies.

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

What do programs contain?

A

Namespaces.

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

What do namespaces contain?

A

Types and other namespaces.

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

What do types contain?

A

Members.

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

What contains a program?

A

An assembly.

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

Is it required to specify a reference to another C# source file in a program in order to use its types?

A

No, C# programs join all their source files in a single unit and each source file can reference the types of the others without being explicit about the inclusion of the other source file.

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