part 1 Flashcards
(163 cards)
What is .Net?
Name three main components.
.Net is the entire ecosystem surrounding C# programs. It includes a runtime, the base class library, and an SDK
What is a runtime?
IT is the environment your C# program runs within.
what is the base class library(BCL)?
a set of fundamental C# building blocks
What 3 other popular languages utilize .Net?
Visual Basic, F#, and Powershell
What is an IDE and what is it used for?
Integrated Development Environment. A program that combines tools into an application designed to streamline the programming process.
Name the two main components to a C# program, each pieces main purpose, and the file extension.
source code (.cs) - instructions written in C# for the computer to run.
configuration (.csproj) - instructions for the computer to help it compile the C# code into binary instructions.
What does the compiler do and what file types can be the result from it?
It takes the C# code and projects configuration (.cs and .csproj) and produces the final binary instructions for the computer to run directly.
The result is either a .exe or .dll file
What is a literal?
a chunk of code that defines some specific value, precisely as written.
What is an identifier?
It refers to some existing code element.
What is the period character below and what does it do?
Console.WriteLine()
The member access operator
or
the dot operator
It allows us to move down in the hierarchy to access children (also called members) of a container.
What is the process of ‘name binding’?
The compiler working to identify what code element an identifier refers to.
Can a class have methods as members?
Yes, but a method cannot have a class as a member.
What are the two main components of a class?
The data they need to do their job
and
tasks they can perform
What is a method?
A named, reusable block of code that you can request to run.
What is ‘method invocation’ or a ‘method call’ and how is it performed?
The act of asking a method to run.
by using a set of parentheses after the method name
Do all methods require data to perform their task?
No.
Can some methods return data?
Yes.
What is the container that most classes live in called?
A namespace
What is the ‘main method’ or ‘entry point’ and what class does it live in?
The code that will automatically run when the computer runs your program. Other methods won’t run unless the main method calls them.
The Program Class
What is a statement and how do you typically end it?
A single step or command for the computer to run.
Most C# statements end with a semicolon.
In what order are statements run?
Top to bottom, left to right
How does C# handle whitespaces including tabs, spaces, and new lines?
It ignores them as long as it can tell where one thing ends and another begins.
What is an expression?
What is the output?
What can be done with that output?
Bits of code that your program must process or evaluate to determine their value.
They describe how to produce a value from smaller elements. This value can be used in other expressions or other parts of your code.
What is a variable and what are it’s three parts?
Containers for data whose contents can change or vary as the program runs. They allow us to store data for later use.
Name, value, and type