COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
variable
|
|
function
|
|
condition
|
|
cycle
|
Detailed explanation-1: -The condition in an if-statement must be an expression that evaluates to a boolean (that is, either true or false). For this we can use relational operators, and we can create more complex expressions using boolean operations.
Detailed explanation-2: -Hypotheses followed by a conclusion is called an If-then statement or a conditional statement. This is noted as. p→q. This is read-if p then q. A conditional statement is false if hypothesis is true and the conclusion is false.
Detailed explanation-3: -The hypothesis is the first, or “if, ” part of a conditional statement. The conclusion is the second, or “then, ” part of a conditional statement. The conclusion is the result of a hypothesis. Keep in mind that conditional statements might not always be written in the “if-then” form.