Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Question Bank for GATE Computer Science Engineering  >  Test: Miscellaneous Topics- 2 - Computer Science Engineering (CSE) MCQ

Test: Miscellaneous Topics- 2 - Computer Science Engineering (CSE) MCQ


Test Description

15 Questions MCQ Test Question Bank for GATE Computer Science Engineering - Test: Miscellaneous Topics- 2

Test: Miscellaneous Topics- 2 for Computer Science Engineering (CSE) 2024 is part of Question Bank for GATE Computer Science Engineering preparation. The Test: Miscellaneous Topics- 2 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Miscellaneous Topics- 2 MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Miscellaneous Topics- 2 below.
Solutions of Test: Miscellaneous Topics- 2 questions in English are available as part of our Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) & Test: Miscellaneous Topics- 2 solutions in Hindi for Question Bank for GATE Computer Science Engineering course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Miscellaneous Topics- 2 | 15 questions in 45 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Miscellaneous Topics- 2 - Question 1

The maximum degree of any vertex in a simple graph with n vertices is

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 1

The maximum degree of any vertex in simple graph is:
total edges  since number of edges are 'n'
so degree will be 

Test: Miscellaneous Topics- 2 - Question 2

A 3-ary tree is a tree in which every internal node has exactly 3 children. The number of leaf nodes in such a tree with 6 internal nodes will be

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 2

It can be proved by induction that any 3-ary tree with n internal nodes will have exactly [2 (n— 1) + 3] leaf nodes.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Miscellaneous Topics- 2 - Question 3

Which of the following need not be a binary tree?

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 3

Search tree, heap and AVL tree can be of maximum of order ‘2' So, must be a binary tree. But, in case of B-tree, order of B-tree could be any number. So, it need not be a binary tree always.

Test: Miscellaneous Topics- 2 - Question 4

From the diagram below which one is the correct PREORDER, INORDER and POSTORDER traversal

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 4

Test: Miscellaneous Topics- 2 - Question 5

A-2-3-tree is a tree such that
1. All internal nodes have either 2 or 3 children.
2. All paths from root to the leaves have the same length
The minimum number of internal nodes of a 2-3 tree having 9 leaves could be

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 5

As all the leaves are on same level. So, to have the maximum number of internal nodes for 9 leaves our tree should be like as follows:

 

Test: Miscellaneous Topics- 2 - Question 6

A binary search tree is generated by inserting in order the following integers:
50, 15, 62, 5, 20,58, 91, 3, 8, 37, 60, 24
​The number of nodes in the left subtree and right subtree of the root respectively is

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 6

Test: Miscellaneous Topics- 2 - Question 7

From the given syntax tree the corresponding expression is:

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 7

From the circled sub trees and inorder notation we have A* B-(C+ D)* (P/Q) as the required expression.

Test: Miscellaneous Topics- 2 - Question 8

Consider an undirected unweighted graph G. Let a breadth-first traversal of G be done starting from a node r. Let d(r, u) and. d(r, v) be the lengths of the shortest paths from r to u and v respectively in G. If u is visited before v during the breadth- first traversal, which of the following statement is correct​

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 8

If u is visited before v, d(r, u) ≤ d(r, v) i.e., r to u is having shortest or equal length compared from r to v.

Test: Miscellaneous Topics- 2 - Question 9

The minimum number of colours required to colour the vertices of a cycle with n nodes in such a way that no two adjacent nodes have the same colour is

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 9

Cycle may contain even or odd number of vertices (i) Let n = even. Then exactly 2 colors are required minimum

(ii) Let n = odd

Then 3 colors are required to color the cycle with odd.

minimum number of colurs = 

Test: Miscellaneous Topics- 2 - Question 10

Consider the directed graph given below:

Which one of the following is TRUE ?

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 10

Test: Miscellaneous Topics- 2 - Question 11

Given below are some algorithms, and some algorithm design paradigms.
List-1
A. Dijkstra’s Shortest Path
B. Floyd-Warshall algorithm to compute all pairs shortest path
C. Binary search on a sorted array
D. Backtracking search on a graph

List-II 
1. Divide and Conquer
2. Dynamic Programming
3. Greedy design
4. Depth-first search
5. Breadth-first search

Match the above algorithms (List-I) to the corresponding design paradigm (List-ll) they follow.

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 11

Dijkstra’s shortest path →Greedy design.
Floyd warshall algorithm to compute all pair shortest path → Dynamic programming.
Binary search on a sorted → Divide and Conquer array.
Backtracking searching → Depth first search on a graph.

Test: Miscellaneous Topics- 2 - Question 12

Consider the following table: Match the algorithms to the design paradigms they are based on.

 

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 12
  • Kruskal’s algorithms which is used to find MST uses greedy approach. 
  • Quicksort uses divide and conquer approach by dividing the input array according to pivot element.
  • Floyd-Warshall which is used to find all pair shortest path uses dynamic programming.
Test: Miscellaneous Topics- 2 - Question 13

What is the time complexity for the following C module? Assume that n > 0.

int module (intn)
{
if (n == 1)
return 1;
else return (n + module ( n - 1));
}

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 13

Recurrence relation for above program:

By doing in this way we get

Test: Miscellaneous Topics- 2 - Question 14

The number of rotations required to insert a sequence of elements 9, 6, 5, 8, 7, 10 into an empty AVL tree is

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 14

Number of rotations = 3

Test: Miscellaneous Topics- 2 - Question 15

A simple graph (a graph without parallel edge or loops) with n vertices and k components can have at most

Detailed Solution for Test: Miscellaneous Topics- 2 - Question 15

A graph with n-edges (without loop and parallel edges) and K components can have

for

63 videos|8 docs|165 tests
Information about Test: Miscellaneous Topics- 2 Page
In this test you can find the Exam questions for Test: Miscellaneous Topics- 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Miscellaneous Topics- 2, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)