COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
ELSE
|
|
IF
|
|
OR
|
|
INPUT
|
Detailed explanation-1: -A decision statement contains three things: (1) a statement of the decision; (2) evidence that supports the decision; and (3) a statement of who will positively and negatively benefit from the decision. Ask students to complete Part 3: Your Decision Statement.
Detailed explanation-2: -The IF statement is a decision-making statement that guides a program to make decisions based on specified criteria. The IF statement executes one set of code if a specified condition is met (TRUE) or another set of code evaluates to FALSE.
Detailed explanation-3: -Answer: if and if else statement are used to make decisions based on comparison in computer programming languages.
Detailed explanation-4: -If statements The if statement is the simplest example of a decision structure in Java. In an if statement a logical test is made which can evaluate to either true or false. If the result of the test is true, the statements in the if branch are executed.