What is a control structure?
What is a sequence structure?
What circumstances that lets decision structure execute statements execute its statements?
What type for expression on decision structure?
How to write if statements in C#?
if ( expression )
{
statements
statements
}
List out all relational operator ( 6 )
What is the format for if-else statement?
if ( expression )
{
statements
}
else
{
statements
}
Format for Nested Decision Structures
if ( expression )
{
if ( expression )
{
statement
}
else
{
statement
}
}
else
{
statements
}
Format for if-else-if statement
if ( expression )
{
}
else if ( expression )
{
}
else if ( expression )
{
}
else
{
}
List out 3 logical operator
What does switch statement does?
Format for switch statement
switch (testExpression)
{
case value_1:
statements
break
case value_n:
statements
break
default:
statements
break
}
What is a testExpression in switch statement?
List out 3 methods for comparing strings
if ( n_1 == n_2 )
{
}
if ( String.Compare(name1,name2)==0 )
{
}
List out the syntax for preventing data conversion exception
int.TryParse( string , out targetVariable )
What is input validation?
if ( hours > 0 && hours <= 168 )
{
}
else
{
}
What is the difference between Radio Buttons & Check Boxes?
By clicking on a radio button, the program automatically deselects any others, this is known as what?
What is the common properties for RadioButton ? ( 2 )
How to determine whether a RadioButton is selected?
if ( choiceRadioButton.Checked ) {
}
else{
}
if ( choiceRadioButton.Checked == true ) {
}
else{
}
What is raised when a RadioButton or CheckBox control’s Checked property changes?
private void yellowRadioButton_CheckedChanged(object sender, EventArgs e) { }
What is a list box?
List out 4 commonly used properties for the List Box
What will occur when I try to get the value of a ListBox SelectedItem property when no item is selected?