FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which term is also used to describe the selection control structure?
A
Object
B
Loop
C
Decision
D
Sequence
Explanation: 

Detailed explanation-1: -A selection structure, also called an “If-Then-Else” structure, is flowcharted as follows: After either the true set of actions or the false set of actions are taken, program control resumes with the next statement (the statement that would be placed below the connector in the flowchart above).

Detailed explanation-2: -Also known as a conditional structure, a selection structure is a programming feature that performs different processes based on whether a boolean condition is true or false. Selection structures use relational operators to test conditions.

Detailed explanation-3: -The selection structure tests a condition, then executes one sequence of statements instead of another, depending on whether the condition is true or false. A condition is any variable or expression that returns a Boolean value ( TRUE or FALSE ).

Detailed explanation-4: -Because the while loop checks the condition/expression before the block is executed, the control structure is often also known as a pre-test loop.

There is 1 question to complete.