UNIT IV DSA Quiz

UNIT IV DSA Quiz

University

25 Qs

quiz-placeholder

Similar activities

Graph

Graph

University

20 Qs

Time and Space Complexity

Time and Space Complexity

University

20 Qs

DS - Graphs

DS - Graphs

University

22 Qs

Pre-Test Pertemuan 2

Pre-Test Pertemuan 2

University

26 Qs

Technical quiz(Medium-Level)

Technical quiz(Medium-Level)

University

25 Qs

Lecture EIGHT.

Lecture EIGHT.

University

20 Qs

Dev 6a prac 5

Dev 6a prac 5

University

20 Qs

DSA 2024 - Module 4

DSA 2024 - Module 4

University

20 Qs

UNIT IV DSA Quiz

UNIT IV DSA Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Placement Stjosephs

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a graph in data structures?

A linear collection of data

A hierarchical structure

A set of vertices and edges

A tree-like structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct representation of a graph?

Stack

Queue

Adjacency list or adjacency matrix

Binary tree

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an undirected graph, an edge (u, v) is equivalent to:

(u, v) ≠ (v, u)

(u, v) = (v, u)

One-direction only

Self-loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following graphs has direction associated with edges?

Undirected graph

Directed graph

Weighted graph

Simple graph

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a complete graph?

Every node has a self-loop

All nodes are disconnected

Each pair of vertices is connected by an edge

Only even nodes are connected

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents a sparse graph?

More edges than vertices

Few edges compared to vertices

All nodes connected

Graph with no nodes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is used in Breadth First Search (BFS)?

Stack

Queue

Array

Tree

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?