CompTIA PenTest+ PT0-002 Practice Question
Which data structure is non-linear and consists of nodes connected by edges, where nodes may have zero or more child nodes, typically used to represent hierarchical information?
Stack
Graph
List
Tree
Which data structure is non-linear and consists of nodes connected by edges, where nodes may have zero or more child nodes, typically used to represent hierarchical information?
Stack
Graph
List
Tree
A tree is a non-linear data structure that consists of nodes connected by edges. Each node in a tree can have zero or more child nodes, and it is a way to represent hierarchical structures such as directory structures or organizational structures. Binary trees are a special case with a maximum of two children, but 'tree' generally refers to any hierarchical node structure with any number of children, hence making it the correct answer. A graph can be cyclic and doesn't necessarily follow a hierarchical structure. A list and a stack are linear data structures, which differ significantly from the non-linear, hierarchical nature of trees.
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Join premium for unlimited access and more features
All plans include the following perks.
Our pricing is simple. Full access to all certifications and exams, for one price.
As many practice tests for as many topics as you want.
Use study mode non-stop, no limits.
No annoying ads and popups. Study without distractions.
Track your scores over time in study mode and report cards.
See how you improve over time, and where you need to focus.
Access our store with even more discounts than before.
Unlimited access to all PBQs and be prepared for the real thing.
Create an account or sign in to access our study materials.