MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

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
Functional
D
Sequence
Explanation: 

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

Detailed explanation-2: -Iterative statements (loops) allow a set of instructions to be executed or performed several times until certain conditions are met.

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.

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

There is 1 question to complete.