FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
A
Selection
B
Loop
C
Sequence
D
Functional
Explanation: 

Detailed explanation-1: -Sequence is the default control structure; instructions are executed one after another.

Detailed explanation-2: -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-3: -The basic Control Structures in programming languages are: Conditionals (or Selection): which are used to execute one or more statements if a condition is met. Loops (or Iteration): which purpose is to repeat a statement a certain number of times or while a condition is fulfilled.

Detailed explanation-4: -In selection control structures, conditional statements are features of a programming language which perform different computations or actions depending on whether a programmer-specified Boolean condition evaluates to true or false.

There is 1 question to complete.