ITEC81 (Sir Rumer) Flashcards
are the statements that controls the execution of the program based on the specified condition
it is useful for determining whether a condition is true or not
Control statements
it is the simplest form of control statement, frequently used in decision making and changing the control flow of the program execution
if-then statement
can be followed by an optional Else statement, which executes when the Boolean expression is false
If-then-else statement
provides a choice to execute only one condition or statement from multiple statements
if-then-elseif statement
allows a variable to be tested for equality against a list of values.
select case
must evaluate to any of the elementary data type in VB.NET, boolean, byte, char, date, double etc
expression
list of expression clauses representing match values for expression
expressionlist
following case that run if the select expression matches any clause in expressionlist
statements
statements following Case Else that run if the select expression does not match any clause in the expressionlist of any of the Case statements.
elsestatements
is triggered automatically when the user selects a different item in the ComboBox
SelectedIndexChanged
are fundamental for tasks that require repetition, such as iterating through collections, processing data, or performing calculations multiple times
Looping Statements
determines whether the loop will continue or terminate
represented by a diamond-shaped box
condition
will execute repeatedly as long as the condition remains true
represented by a rectangular box
Conditional code
it repeats the enclosed block of statements while a boolean condition is true or until the condition becomes true.
it could be terminated at any time with the Exit Do statement
Do Loop
continues until the specified condition is true. This loop is useful when you want to execute code until a certain condition is met
Do until loop