MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
You are required to design an algorithm to calculate the pay for an artiste. The pay is top rate for most popular artiste otherwise is at normal rate. Which one of the following control structures should you use?
A
Iteration.
B
Repetition.
C
Selection.
D
Sequence.
Explanation: 

Detailed explanation-1: -There are four types of machine learning algorithms: supervised, semi-supervised, unsupervised and reinforcement.

Detailed explanation-2: -There are three basic types of logic, or flow of control, known as: Sequence logic, or sequential flow. Selection logic, or conditional flow. Iteration logic, or repetitive flow.

Detailed explanation-3: -1): An algorithm is a finite set of instructions that, if followed, accomplishes a particular task. All algorithms must satisfy the following criteria: Zero or more input values. One or more output values. Clear and unambiguous instructions.

Detailed explanation-4: -Selection: Algorithms can use selection to determine a different set of steps to execute based on a Boolean expression.

There is 1 question to complete.