Bookmark and Share

Start Studying Deck Add Cards

Glossary of c sharp fundamentals

Created by daniel
 EditDelete
C# is a strongly-typed langugage. What defines a strongly-typed language.
In a strongly-typed language you must define the type of each object you create.  The compiler enforces the data typing.
 EditDelete
How do you explicitly convert an object of one type into another?
By casting it.
 EditDelete
How is a reference type stored in memory?
The address of a reference type variable sits on the stack, but the actual object is stored on the heap.
 EditDelete
How is a value type stored in memory?
Value types are stored on the stack.
 EditDelete
List all of the unconditional branch keywords.
goto, break, continue, return, and throw
 EditDelete
Name the four interation statements used by C#.
For, While, Do...While, and ForEach
 EditDelete
Name the two conditional branching statements.
If...else statements and switch statements.
 EditDelete
Name the two sets of types in C#.
Intrinsic (built-in), and user-defined.
 EditDelete
Name two ways to create an unconditional branch.
By invoking a method or using one of the unconditional branch keywords.
 EditDelete
What is a constant?
A constant is a variable whose value can't be changed.
 EditDelete
What is a statement?
A program instruction.
 EditDelete
What is a variable?
A storage location with a type.
 EditDelete
What is an enumeration?
An enumeration is a distinct value type, consisting of a set of named constants (called the enumerator list).
 EditDelete
What is an expression?
A statement that evaluates to a value.
 EditDelete
What is the function of the #region preprocessor directive?
The #region preprocessor directive marks an area of code with a comment which allow tools like VS to mark off areas of code and collapse them in the editor with only the region's comment showing.
 EditDelete
What is the heap?
The heap is an area of memory used to allocate space for objects.
 EditDelete
What is the modulus operator's function?
To find the remainder in integer division.
 EditDelete
What is the stack?
An area of memory supported by the processor, on which the local variables are stored.