FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When you use an IF statement in programming you are creating ____ code.
A
sequential
B
simultaneous
C
conditional
D
variable
Explanation: 

Detailed explanation-1: -A conditional statement takes a specific action based on the result of a check or comparison that takes place. So, all in all, the if statement makes a decision based on a condition. The condition is a Boolean expression. A Boolean expression can only be one of two values – true or false.

Detailed explanation-2: -Conditional Statements Use if to specify a block of code to be executed, if a specified condition is true. Use else to specify a block of code to be executed, if the same condition is false. Use else if to specify a new condition to test, if the first condition is false.

Detailed explanation-3: -if statements. if statements are used to conditionally execute statement lists according to the value of a boolean expression. In this form, the if keyword is followed by a boolean expression, the keyword then, a list of statements and the final keyword end.

Detailed explanation-4: -Conditional statements are used through the various programming languages to instruct the computer on the decision to make when given some conditions. These decisions are made if and only if the pre-stated conditions are either true or false, depending on the functions the programmer has in mind.

Detailed explanation-5: -Conditional statements help mathematicians and computer programmers make decisions based on the state of a situation. While they vary in use and complexity, professionals typically use conditional statements to test hypotheses and establish rules for programs to follow.

There is 1 question to complete.