Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
74 Cards in this Set
- Front
- Back
What 4 pieces of information do you need to declare an array?
|
Type, Name, Dimensions, and Size
|
|
What are the four types of arrays?
|
Single-Dimension, Jagged, Two-Dimensional, & Multi-Dimensional
|
|
This array is initialized at declaration time with explicit values.
|
Single Dimension Array ex: int[] myInts= {5, 10, 15 };
|
|
This is an array of arrays which consists of the primary array and sub arrays. This array will only allocate memory for the size of each array in each dimension that you define.
|
Jagged Array
|
|
In this array where each dimension is seperated by a comma and must also be instantiated by the "new" operator.
|
Two-Dimensional Array
|
|
This array will allocate memory for every element of each dimension.
|
Multi-Dimensional Array
|
|
A storage location for data. You can place data within them and retrieve their contents.
|
Variable
|
|
List the 5 simple types
|
Boolean, Integrals, floating point, decimal & string
|
|
List the 5 different integral types.
|
byte, short, int, long, char
|
|
When are floating point types used?
|
when you need to perform operations requiring fractional representations.
|
|
when are decimal types used?
|
when you need to perform financial calculations to avoid rounding errors.
|
|
How do you represent the verbatim literal in a string
|
with the @ symbol
|
|
What is the if statement
|
allows you to take different paths of logic, depending on a given condition.
|
|
What are the three types of if statements?
|
if, else if, & else
|
|
What is the difference between regular OR ( | ) and conditional OR ( || )
|
The boolean expression will evaluate to true if either of the two sub expressions on either side of the operator evaluate to true. The difference is the regular OR operator will evaluate both sub expressions every time. However the conditional OR will evaluate the second sub expression only if the firs expressions evaluates to false.
|
|
What type of values can a switch statement operate on
|
booleans, enums, integral types, and strings.
|
|
What are the four types of loops?
|
While, Do, for, foreach
|
|
This loop will check a condition and then continue to execute a block of code as long as the condition evaluates to a boolean value of true
|
The While loop
|
|
What is the difference between the Do and While loop?
|
the do loop check its condition at the end of the loop. This means that the do loop is guaranteed to execute at least one time. The while loop evaluates its expression at the beginning of the loop.
|
|
When are for loops appropriate?
|
When you know exactly how many times you wish to perform the statements within the loop.
|
|
These provide the opportunity to protect a field in a class by reading and writing to it through the property.
|
Properties
|
|
What is a struct?
|
A value type. Value types hold their value in memory where they are declared.
|
|
What is an exception?
|
An unforeseen error that happen in your programs
|
|
Program
|
Set of instructions that you write to tell a computer what to do.
|
|
Machine Language
|
The most basic circuitry-level language.
|
|
High Level Programming Language
|
Allows you to use a vocabulary of reasonable terms such as read
|
|
Syntax
|
A language's set of rules.
|
|
Compiler
|
A computer program that translates high-level language statements into machine code.
|
|
Syntax Error
|
An error that occurs when a programming language is used incorrectly.
|
|
Logic
|
Involves executing the various statements and methods in the correct order to produce the desired results.
|
|
Semantic Errors
|
Type of logical errors that occur when you use a correct word in the wrong context.
|
|
Debugging
|
The process of removing all syntax and logical errors from the program.
|
|
Procedural Program
|
A series of steps or operations to manipulate values.
|
|
Variables
|
Named computer memory location that hold values that may vary.
|
|
Identifier
|
The name of a program component such as a variable
|
|
Camel Casing
|
A style of creating identifiers in which the first letter is not capitalized
|
|
Pascal Casing
|
A style of creating identifiers in which the first letter of all new words in a variable name
|
|
Procedures or Methods
|
A compartmentalized program unit that accomplishes tasks.
|
|
Object-oriented programming
|
A programming technique that features objects
|
|
Objects
|
Program elements that are instances of a class.
|
|
Command Line
|
The line on which you type a command in a system that uses a text interface
|
|
Command Prompt
|
A request for input that appears at the beginning of the command line.
|
|
Attributes
|
An objects characteristics
|
|
States
|
The values of an objects attributes.
|
|
State of an Object
|
The collective value of all an object's attributes at any point in time.
|
|
Class
|
A category of objects or a type of object.
|
|
Properties
|
An object's values.
|
|
Encapsulation
|
The technique of packaging an object's attributes and methods into a cohesive unit that can be used as an undivided entity.
|
|
Black Box
|
A device you use without regard for the internal mechanisms.
|
|
Interface
|
The interaction between a method and an object.
|
|
Polymorphism
|
The ability to create methods that act appropriately depending on the context.
|
|
Inheritance
|
The ability to extend a class so as to create a more specific class that contains all the attributes and methods of a more general class; the extended class usually contains new attributes or methods as well.
|
|
C# Programming Language
|
An object-oriented and component-oriented language. It exists as part of Visual Studio 2008
|
|
Primitive Data
|
simple data
|
|
Literal String
|
a series of characters that is used exactly as entered.
|
|
Argument or Parameter
|
represent information that a method needs to perform its task. An argument is the expression used when you call a method
|
|
WriteLine() Method
|
Displays a line of output on the screen
|
|
Write() Method
|
Displays a line of output on the screen
|
|
Namespace
|
A scheme that provides a way to group similar classes.
|
|
System Namespace
|
Built into the C# compiler
|
|
Method Header
|
Includes the method name and information about what will pass into and be returned from a method
|
|
Method Body
|
Contained within a pair of curly braces({}) and includes all the instructions executed by the method.
|
|
Whitespace
|
Any combination of spaces
|
|
Keywords
|
Predefined and reserved identifiers that have special meaning to the compiler.
|
|
Access Modifier
|
Defines the circumstances under which a method or class can be accessed; public access is the most liberal type of access.
|
|
Verbatim Identifier
|
An identifier with an @ prefix.
|
|
Program Comments
|
Nonexecuting statements that you add to document a program.
|
|
Line Comments
|
Start with two forward slashes (//) and continue to the end of the current line. Line comments can appear on a line by themselves
|
|
Block Comments
|
Start with a forward slash and an asterisk (/*) and end with an asterisk and a forward slash (*/). Block comments can appear on a line by themselves
|
|
XML Documentation Format Comments
|
A special set of tags within angle brackets to create documentation from within a program.
|
|
Alias
|
An alternative name for a class.
|
|
Source Code
|
The statements you write when you create a program.
|
|
Intermediate Language (IL)
|
The language into which source code statements are compiled.
|
|
Just In Time (JIT)
|
A compiler that translates intermediate code into executable code.
|