Type Basics Flashcards

1
Q

What is a predefined type in C#?

A

Predefined types (also called built-in types) are types that are specially supported by the compiler.

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

What is the int type?

A

The int type is a predefined type for representing the set of integers that fit into 32 bits of memory, from −231 to 231−1.

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

What is a top-level statement?

A

Top-level statements (from C# 9) let you avoid the baggage of a static Main method and a containing class.

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