COMPUTER APPLICATIONS
DATABASE MANAGEMENT SYSTEMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
A branching structure that has 2 (two) conditions can use the command____
|
for atau while
|
|
if
|
|
if-else
|
|
if-elif-else
|
|
elif
|
Explanation:
Detailed explanation-1: -A conditional branch instruction is a branch instruction that may or may not generate a transmission of control that relies upon the value of stored bits in the PSR (processor status register). It provides decision-making capabilities in the control unit.
Detailed explanation-2: -IF-ELSE-IF: if the condition is true, then the block of code inside the IF statement is executed. After that, the ELSE-IF block is checked. If the condition associated with this is true, then the block of statements inside this ELSE-IF block is executed. Otherwise, the statement inside the ELSE block is executed.
Detailed explanation-3: -switch case statement is considered as the multiple branching statement.
There is 1 question to complete.