Data Structures and Algorithms-I MCQs

Page No. 47

A Graph Structured Stack is a _____________


aUndirected Graph


bDirected Graph


cDirected Acyclic Graph


dRegular Graph



If a connected Graph (G) contains n vertices what would be the rank of its incidence matrix?


an-1


bvalues greater than n are possible


cvalues less than n-1 are possible


dinsufficient Information is given


View Answer n-1

Time complexity to check if an edge exists between two vertices would be ___________


aO(V*V)


bO(V+E)


cO(1)


dO(E)


View Answer O(E)

The column sum in an incidence matrix for a directed graph having no self loop is __________


a0


b1


c2


dequal to the number of edges


View Answer 0

What are the dimensions of an incidence matrix?


aNumber of edges*number of edges


bNumber of edges*number of vertices


cNumber of vertices*number of vertices


dNumber of edges * (1⁄2 * number of vertices)



The column sum in an incidence matrix for a simple graph is __________


adepends on number of edges


balways greater than 2


cequal to 2


dequal to the number of edges


View Answer equal to 2

Incidence matrix and Adjacency matrix of a graph will always have same dimensions?


aTrue


bFalse


cNone of the given options


deither true either false


View Answer False

What would be the time complexity of the BFS traversal of a graph with n vertices and n1.25 edges?


aO(n)


bO(n1.25)


cO(n2.25)


dO(n*n)


View Answer O(n1.25)

To create an adjacency list C++’s map container can be used.


aTrue


bFalse


cNone of the given options


deither true either false


View Answer True

In which case adjacency list is preferred in front of an adjacency matrix?


aDense graph


bSparse graph


cAdjacency list is always preferred


dComplete graph


View Answer Sparse graph

Goto Page No.

Page 47 of 53

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan