FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Why are conditional statements important?
A
They monitor the input
B
The control a program loop by stopping it at a specified predetermined event.
C
The deliver the output
D
They receive data from the computer calculation
Explanation: 

Detailed explanation-1: -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.

Detailed explanation-2: -A condition in a loop determines how many times to run the loop, if the loop should be run, etc. Basically it controls the loop and decides what happens to the code inside of it.

Detailed explanation-3: -Conditional statements with the proper comparison and boolean operators allow the creation of alternate execution paths in the code. Loops allow repeated execution of the same set of statements on all the objects within a sequence. Using an index based for loop is best suited for making changes to items within a list.

Detailed explanation-4: -Conditional Control: IF Statements. Often, it is necessary to take alternative actions depending on circumstances. The IF statement lets you execute a sequence of statements conditionally. That is, whether the sequence is executed or not depends on the value of a condition.

There is 1 question to complete.