Professional Documents
Culture Documents
Fourt Quarter Reviewer
Fourt Quarter Reviewer
Fourt Quarter Reviewer
comparison - This operator are used to compare two operands for equality and to determine if one numeric value is
greater than the other.
What is the Boolean value if the two operands are equal? – FALSE
Logical - Used for comparing two Boolean operands for equality.
Boolean - This data type can only have two values, True and False
Sequence - A control structure that shows an action sequentially followed by another action.
Selection - A control structure that tells the program which action to perform, based on a certain condition.
How do you specify the code to be executed if none of the cases match the condition?
- By using the default keyword.
Can you have multiple case labels for a single block of code? Yes, it is possible.
Top to bottom - order does the code execution flow through the switch statement.
data types that can be used as the condition for a switch statement – (Number, String, and Boolean)
How do you exit a switch statement before reaching the end of the block? By using the break keyword.
What statement is used if the conditional expression evaluated by the if statement returns a false value? If else
switch statement - A control program flow, executing a specific set of statement, depending on the value of an
expression.
loop statement - A repeatedly executes a statement or a series of statements while a specific condition is true or until
a specific condition becomes true.
while statement - Used for repeating a statement or series of statement as long as the given condition statement is
true.
How many default cases can you have in a single switch statement? Only one.
Which statement is executed if no case matches the condition and there is no default case? No statement is executed.
Can you nest switch statements within each other? Yes, it is possible.
-----------------------------------------------------------------------------------------------------
Array
<INPUT> - It defines an input field where the user may enter information on the form.
TEXT type - Produces a single line text entry. It allows user to enter character data.
The PASSWORD type is a lot like text. They share all the same attributes, except that any characters typed into the
box are hidden.
Check box - Allows the user to select one or more options from a set of choices.
Radio buttons - This element is used to display a list of options just like checkbox.
The Reset type creates a button on the screen that clear the form and returns all the settings to their original default
values.
Function
Function - Consists of a group of statement that perform a single task and is placed under one name.