# MCQ IN COMPUTER SCIENCE & ENGINEERING

## COMPUTER SCIENCE AND ENGINEERING

### ALGORITHMS

 Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An Algorithm asks the user to enter their gender (M or F) and prints out a different comment depending on what they entered.This is an example of which of the algorithm constructs?
 A Decision (Selection) B Loop (Iteration) C Order (Sequence) D All of the above
Explanation:

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

Detailed explanation-2: -Common examples include: the recipe for baking a cake, the method we use to solve a long division problem, the process of doing laundry, and the functionality of a search engine are all examples of an algorithm.

Detailed explanation-3: -An algorithm is a set of instructions for solving a problem or accomplishing a task. One common example of an algorithm is a recipe, which consists of specific instructions for preparing a dish or meal.

Detailed explanation-4: -What are the 7 types of algorithms? The seven types of algorithms are the brute force-based algorithm, greedy algorithm, recursive algorithm, backtracking algorithm, divide and conquer algorithm, dynamic programming algorithm, and randomized algorithm.

There is 1 question to complete.