Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Test  >  GATE Computer Science Engineering(CSE) 2027 Mock Test Series  >  Test: Divide & Conquer- 1 - Computer Science Engineering (CSE) MCQ

GATE Computer Science Engineering(CSE) 2027 Test: Divide & Conquer- 1 Free


MCQ Practice Test & Solutions: Test: Divide & Conquer- 1 (10 Questions)

You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Divide & Conquer- 1". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 30 minutes
  • - Number of Questions: 10

Sign up on EduRev for free to attempt this test and track your preparation progress.

Test: Divide & Conquer- 1 - Question 1

The way a card game player arranges his cards as he picks them up one by one, is an example of

Detailed Solution: Question 1

It is done only by insertion sort because in insertion sort we compare the one card to another all inserted card.

*Multiple options can be correct
Test: Divide & Conquer- 1 - Question 2

 You want to check whether a given set of items is sorted. Which of the following sorting methods will be the most efficient if it is already is sorted order?

Detailed Solution: Question 2

if we want to check if given input is sort or not then one pass of bubble sort and n pass of insertion sort with each has work of O(1) are best i.e.take O(n) time.

Test: Divide & Conquer- 1 - Question 3

Which of the following sorting methods will be the best if number of swappings done, is the only measure of efficiency?

Detailed Solution: Question 3

If number of swapping is the measure of efficiency of algorithm the selection sort is best since it cannot take swap more than O(n).

Test: Divide & Conquer- 1 - Question 4

You are asked to sort 15 randomly generated numbers. You should prefer

Detailed Solution: Question 4

In-order traversal of a Binary Search Tree lists the nodes in ascending order.

Test: Divide & Conquer- 1 - Question 5

As part of the maintenance work, you are entrusted with the work of rearranging the library books in a shelf in proper order, at the end of each day. The ideal choice will be

Detailed Solution: Question 5

Rearranging the library books in a shelf in proper order is same as arranging cards. So insertion sort should be preferred.

Test: Divide & Conquer- 1 - Question 6

Which of the following algorithms exhibits the unnatural behaviour that, minimum number of comparisons are needed if the list to be sorted is in the reverse order and maximum number of comparisons are needed if they are already in sorted order?

Detailed Solution: Question 6

Binary insertion sort take minimum comparison if the list to be sorted is in reverse order and maximum number of comparison if they already in sorted order.

Test: Divide & Conquer- 1 - Question 7

 Which of the following sorting methods sorts a given set of items that is already in sorted order or in reverse sorted order with equal speed?

Detailed Solution: Question 7

Quick sort has two worst cases, when input is in either ascending or descending order, it takes same time O(n2).

Test: Divide & Conquer- 1 - Question 8

 Which of the following algorithm design technique is used in the quick sort algorithm?

Detailed Solution: Question 8

Quick sort algorithm uses divide and conquer technique. It divides the data set every time on pivot element and keep on sorting each data set recursively.

Test: Divide & Conquer- 1 - Question 9

 A binary search tree contains the values 1, 2, 3, 4, 5, 6, 7 and 8. The tree is traversed in preorder and the values are printed out. Which of the following sequences is a valid output?

Detailed Solution: Question 9

Preorder is root, left, right.

  • So, option (b) can’t be a valid output. Since, 5 being the root and [312] a left sub-tree and [6487] being a right sub tree. But, 4 < 5, so not possible.
  • In option (a), considering 5 as root, [786] becomes the right sub tree. Further, 7 being the root 6 can’t be apart of right sub-tree.
  • Similarly, we can shown (c) can’t be a valid output.
  • So, (d) can be the only possible valid output.

Test: Divide & Conquer- 1 - Question 10

 Which of the following also called "diminishing interment sort"?

Detailed Solution: Question 10

The shell sort sometimes called the “diminishing increment sort" improves on the insertion sort by breaking the original list into a number of smaller sub list each of which is sorted using an insertion sort.

56 docs|215 tests
Information about Test: Divide & Conquer- 1 Page
In this test you can find the Exam questions for Test: Divide & Conquer- 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Divide & Conquer- 1, EduRev gives you an ample number of Online tests for practice
Download as PDF