Graph - Quiz

  • A To find the shortest path between two nodes in a weighted graph
  • B To find the longest path between two nodes in a weighted graph
  • C To find the minimum spanning tree of a graph
  • D To find the maximum flow in a network
  • A A graph in which there are no cycles
  • B A graph in which every node has a unique degree
  • C A graph in which every node is connected to at least one other node
  • D A graph in which every node is connected to every other node
  • A A way to sort the vertices of a graph based on their degrees
  • B A way to sort the vertices of a graph based on their distances from a particular node
  • C A way to sort the vertices of a directed acyclic graph based on their dependencies
  • D A way to sort the edges of a graph based on their weights
  • A A sequence of nodes in a graph
  • B A sequence of edges in a graph
  • C A sequence of nodes and edges in a graph
  • D A cycle in a graph
  • A A linear data structure in which elements are arranged in a sequence
  • B A non-linear data structure in which elements are arranged in a hierarchy
  • C A non-linear data structure in which elements are arranged in a network
  • D A data structure that represents a set of elements and their relationships
  • A A tree that contains all nodes of a graph and a subset of its edges
  • B A tree that contains some nodes of a graph and a subset of its edges
  • C A tree that contains all nodes of a graph and all of its edges
  • D A tree that contains some nodes of a graph and all of its edges
  • A A node that has no outgoing edges
  • B A node that has no incoming edges
  • C A node in a graph
  • D A node that is connected to another node by an edge
  • A A sequence of nodes in a graph
  • B A sequence of edges in a graph
  • C A sequence of nodes and edges in a graph
  • D A path that ends where it starts
  • A To find the shortest path between two nodes in a weighted graph
  • B To find the longest path between two nodes in a weighted graph
  • C To find the minimum spanning tree of a graph
  • D To find the maximum flow in a network