1/43
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
clean and organized
Understanding the structure of C# code is essential for writing ______________ applications.
Classes
_______ are the building blocks of C# applications.
classes, methods, variables, and statements.
C# code is composed of ____________________________
Main Method
The ___________ is the entry point of a C# program.
Main Method
It's the first method executed when the program is run
Methods
__________ contain a series of instructions that define a specific behavior.
Variables
_______ are used to store data in memory.
int, string, double, and more.
C# supports various data types such as _________________
Statements
___________ are individual instructions within methods.
Comments
__________ provide explanations for code.
Debugging Tools
___________ help identify and fix errors in code.
collaboration and future maintenance.
Documenting code enhances _______________________
Writing Unit Tests
_______________ ensures code behaves as expected.
Function
A __________ is a block of code that performs a specific task.
Organizing code and making it more manageable.
Functions help in _____________________________________
Functions
__________ are defined using the function keyword followed by the function's name.
parameters and return values.
They may accept ____________________________
Parameters
____________ are placeholders for values that a function receives.
Arguments
____________ are the actual values passed to a function when it's called.
Return Values
Functions can ___________ to the calling code.
Return Type
The _________ is specified in the function's declaration.
Execute a Function
Calling Functions: To ____________, it must be called from another part of the program
Name and Arguments
Calling Functions: The function's ________________ are used to call it
Reusability and Modularity.
Benefits of Using Functions: Functions promote code _____________________
Readability and Maintainability
Benefits of Using Functions: They enhance code __________________________
Organization.
Keep functions focused on a specific task for better ____________
Purpose
Use meaningful function names that describe their _________.
Variable
A ________ is a named storage location in memory.
numbers, text, and more.
Variables hold different types of data, such as ______________
Declare A Variable
To _____________, specify its data type followed by its name. Example: int age;
Initializing
________ a variable means giving it an initial value. Example: int score = 0;
int, double, string, char, and more.
C# supports various data types such as
Data Type
Each __________ is used for specific purposes.
Variable names must follow certain rules:
ļ” Begin with a letter or underscore.
ļ” Can include letters, digits, and underscores.
ļ” Case-sensitive.
Variables, Scope
________ have a ______, which defines where they can be accessed
Local Variables
___________ are declared within a method and are only accessible within that method.
___________ are variables with fixed values that cannot be changed.
Const
They are declared using the _______ keyword
Variable Names
Use meaningful ___________ that describe their purpose.
Initialize Variables
________________ when declaring them.
Data type conversion
_________________ is the process of converting one data type to another.
Implicit and explicit
____________ conversions are used in C#.
Understanding variables
___________________ is essential for effective C# programming.
Practice and experimentation
___________________ will enhance your skills in working with variables