Midterm Flashcards
What is object-oriented programming?
A programming methodology where programmers create software objects that model things.
Why do people like OOP?
It enhances programmer productivity and reduces software costs.
Machine vs assembley vs high level languages.
Machine language is directly understood by computers.
Assembly language uses English like abbreviations to represent elementary operations.
High-level languages are translated to machine language using compiler programs.
What are objects and methods used for?
Objects are reusable software components and methods are used to perform a task in a program.
How are objects created?
Objects are created with attributes and behaviors.
What are the characteristics of the C# language?
C# is event-driven and a visual programmin glanguage that allows for multiple tasks to be performed at the same time.
What is the Common Language Runtime (CLR) and platorm independence?
CLR provides functionality that makes .NET programs easier to develop and debug.
What is an IDE used for?
An IDE (integrated development environment) provides programmers with tools to aid in software development and allows you to write, run, test, and debug C# programs quickly.
What are namespaces and code blocks?
Namespaces are named collections of classes.
Code blocks are defined by curly brackets ({ }).
C# comments
’//’ comments out a single-line
‘/…/’ comments out multiple lines.
Naming Conventions
Cannot use keywords, pick a name that is descriptive, but not too long, class names should have each new word capitalized, identifiers should use camelBack casing.
How do you write to the console?
Conosle.WriteLine( ) or Console.Write( )
What is a variable and how do you declare one?
A memory location where a value can be stored for use later in an app.
Declared with a name and type.
Characteristics of C# integers and types.
32 bit integer value
Integer Math
Follows order of operations (PEMDAS)