Module 2.1/5.1 Flashcards
block of code that performs a specific task.
method
specifies what type of value a method returns.
returnType
It is an identifier that is used to refer to the particular method in a program.
methodName
It includes the programming statements that are used to perform some tasks. is enclosed inside the curly braces { }
method body
act as variables inside the method.
Parameters
They are specified after the method name, inside the parentheses.
Parameters and Arguments
When a parameter is passed to the method,
Argument
multiple methods can have the same name with different parameters
method overloading
it continues in a linear fashion one statement after the next until the end of your program is encountered
Simple Sequence
used for decision-making and allows your program statements to deviate from the sequential path and perform different statements based on the value of an expression
Selection Statement
looping enables you to write instructions that can be repeated
Iteration
● also referred to as a test condition
● When you write an expression to be tested, you must first determine the operands.
● Unless a bool data type is used, two operands are required for equality and relational tests.
● You saw this same requirement of two operands when you used binary arithmetic operators such as multiply * and divide / to perform multiplication and division.
Conditional Expressions
Type of operators uses two symbol characters are used as the equality operator in C# for comparing operands.
Equality Operators
==
!=
Type of operators uses test variables to see if one is greater or less than another variable or value.
Relational Operators
>
<
>=
<=
Type of operators uses two ampersands && and two pipes || to represent AND and OR, respectively. These two operators are called the
Logical Operators
&
&&
|
||
!