C Sharp Flashcards
Simplified sentences or a rough draft of a code. (Step by step instructions to solve a problem.)
Algorithms
A sentence in which it contains an instruction that can be translated into a computer program sentence.
Pseudo Code
A sequence of instructions the computer is to follow when it reads over them.
Sentence Structure
A branching of sequence structures that the computer chooses of which to follow based on the current condition.
Decision Structure
A loop in which a computer takes a sequence of commands, and repeats them until a condition is met.
Repetition Structure
- Analyze the problem
- Plan the algorithm
- Desk-check the algorithm
- Code the algorithm into a program
- Test the program
- Evaluate and modify (if necessary) the program
6 Steps of Problem Solving
The name or alias you give a specific data type to store information in.
Variable
A named location in computer memory that cannot be changed after a program is compiled.
Constant
It tells the computer what type of information you are storing, and how much of it.
Data Type
Behaviors of the class - the things it can do
Method
Entity that is a logical grouping of data and behavior members
Class
Acts like a container to provide a way to group similar classes
Namespace
Characteristics of a class
Data Members
Output from a method - must be the data type of the value returned
Return Value
Input into a method - each parameter must state the data type and name
Parameter List
Defines the circumstances of accessibility for variables, methods, and classes
Access Modifiers
All access
Public
Can be accessed by the class it lives in and no where else
Private
Stores small numbers within 8 bits of storage from -275 to 275
byte
Reserves 1 byte of memory
sbyte
-32,768 to 32,767 reserves 2 bytes of memory
short
0 to 65,535 reserves 2 bytes of memory
ushort
-2 billion to 2 billion reserves 4 bytes of memory
int
0 to 4 billion reserves 4 bytes of memory
uint
-9 quintillion to 9 quintillion (18 zeros) reserves 8 bytes of memory
long
0 to 18 quintillion reserves 8 bytes of memory
ulong
Can store any number with significant digits
float