Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Question Bank for GATE Computer Science Engineering  >  Test: Graphs & Hashing- 2 - Computer Science Engineering (CSE) MCQ

Test: Graphs & Hashing- 2 - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Question Bank for GATE Computer Science Engineering - Test: Graphs & Hashing- 2

Test: Graphs & Hashing- 2 for Computer Science Engineering (CSE) 2024 is part of Question Bank for GATE Computer Science Engineering preparation. The Test: Graphs & Hashing- 2 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Graphs & Hashing- 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: Graphs & Hashing- 2 below.
Solutions of Test: Graphs & Hashing- 2 questions in English are available as part of our Question Bank for GATE Computer Science Engineering for Computer Science Engineering (CSE) & Test: Graphs & Hashing- 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: Graphs & Hashing- 2 | 10 questions in 30 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: Graphs & Hashing- 2 - Question 1

Let M be a 3 x3, adjacency matrix corresponding to a given graph of three nodes labeled 1,2, 3. If entry (1,3) in M3 is 2, then the graph could be

Detailed Solution for Test: Graphs & Hashing- 2 - Question 1

If the (1, 3) entry in M3 is 2, it means there are 2 paths of length 3, connecting nodes 1 and 3. If you see the graph in option (a), there are 2 paths connecting 1 and 3,(1 → 2 → 3 → 3 and 1 → 3 → 3 → 3).

Test: Graphs & Hashing- 2 - Question 2

Consider the graph in figure:

What should be the labels of nodes marked 1 and 2 if the breadth first traversal yields the list a b c d e?

Detailed Solution for Test: Graphs & Hashing- 2 - Question 2

In Breadth first traversal the nodes are searched level by level. Starting with vertex A, the only next choice is B. Then C, then 1 and lastly 2. Comparing with ABCDE.

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

Consider the graph in:

Which of the following is a valid strong component? 

Detailed Solution for Test: Graphs & Hashing- 2 - Question 3

Strong component of a given graph is the maximal set of vertices such that for any two vertices i, j in the set, there is a path connecting i to j.
Obviously vertex ‘d' can’t be in the maximal set (as no vertex can be reached starting from vertex d).

Test: Graphs & Hashing- 2 - Question 4

Consider the undirected weighted graph in figure. The minimum cost spanning tree for this graph has the cost.

Detailed Solution for Test: Graphs & Hashing- 2 - Question 4

Using the Kruskal’s algorithm:


∴ Minimum cost is 20.

Test: Graphs & Hashing- 2 - Question 5

The number of binary trees with 3 nodes which when traversed in post-order gives the sequence A, B, C is

Detailed Solution for Test: Graphs & Hashing- 2 - Question 5

Number of binary tree with 3 nodes with post order A, B, C

So there are 5 binary tree possible.

Test: Graphs & Hashing- 2 - Question 6

The minimum number of colors needed to color a graph having n (> 3) vertices and 2 edges is

Detailed Solution for Test: Graphs & Hashing- 2 - Question 6

As we observe that the graph is disconnected
n > 3 (number of vertices)
e = 2 (number of edges)
For example : n = 4
for this only 2 colors are sufficient.

Test: Graphs & Hashing- 2 - Question 7

Which one of the following statements is false?

Detailed Solution for Test: Graphs & Hashing- 2 - Question 7

Breadth first search can be used to find connected components of a graph.

Test: Graphs & Hashing- 2 - Question 8

The number of edges in a regular graph of degree d and n vertices is

Detailed Solution for Test: Graphs & Hashing- 2 - Question 8

In a regular graph, all the vertices will be of the same degree. Total degrees of all the vertices is nd. Each edge will be increasing the total degree by 2. So, totally nd/2 edges.

Test: Graphs & Hashing- 2 - Question 9

The number of binary relations on a set with n elements is

Detailed Solution for Test: Graphs & Hashing- 2 - Question 9


Number of elements in set = n
Number of possible binary relations = n2
Number of possible binary relations of the set = 2n2.

Test: Graphs & Hashing- 2 - Question 10

How many real links are required to store a sparse matrix of 10 rows, 10 columns, and 15 non-zero entries, (Pick up the closest answer)

Detailed Solution for Test: Graphs & Hashing- 2 - Question 10

Matrix of 10 rows and 10 columns can have m axim um 1 0 x 1 0 = 100 entries. S ince only 15 non-zero entries are present, so number of real link will be 15 only.
Assuming undirected graph.

63 videos|7 docs|165 tests
Information about Test: Graphs & Hashing- 2 Page
In this test you can find the Exam questions for Test: Graphs & Hashing- 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Graphs & Hashing- 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)