Data Structures: Multiple Choice

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the maximum number of children a node in a binary tree can have?

  • Three
  • One
  • Unlimited
  • Two (correct)

Which type of binary tree has the maximum possible number of nodes in all levels?

  • Skew binary tree
  • Balanced binary tree
  • Complete binary tree
  • Full binary tree (correct)

Which type of binary tree contains the maximum possible number of nodes in all levels, except possibly the last level?

  • Full binary tree
  • Complete binary tree (correct)
  • Skew binary tree
  • Degenerate binary tree

In a linear representation of a binary tree, if a node is stored at position N, at what position is its left child node stored?

<p>2 * N (A)</p>
Signup and view all the answers

What type of data structure is a linked list?

<p>Linear (C)</p>
Signup and view all the answers

What type of memory allocation is a linked list considered an example of?

<p>Dynamic (A)</p>
Signup and view all the answers

How is a linked list typically stored in memory?

<p>Non-sequentially (C)</p>
Signup and view all the answers

What is another name for a one-way list?

<p>Singly linked list (B)</p>
Signup and view all the answers

Which type of data structure contains not only a data field but also a pointer field?

<p>Linked list (A)</p>
Signup and view all the answers

What is a linked list in which the last node points to the first node commonly known as?

<p>Circular linked list (C)</p>
Signup and view all the answers

In which direction(s) can traversal be performed in doubly linked lists?

<p>In both directions (B)</p>
Signup and view all the answers

In a linked list, if one field of a node is the data field, what is the purpose of the second field?

<p>Pointer to node (C)</p>
Signup and view all the answers

Which type of linked list does not contain NULL pointers in any of its nodes?

<p>Circular linked list (D)</p>
Signup and view all the answers

What is the minimum number of fields required for each node in a doubly linked list?

<p>3 (D)</p>
Signup and view all the answers

What is another term for a singly linked list?

<p>One-way list (D)</p>
Signup and view all the answers

What is another term for a two-way list?

<p>Doubly-way list (D)</p>
Signup and view all the answers

How many fields does each node in a singly linked list typically have?

<p>2 (D)</p>
Signup and view all the answers

In the context of linked lists, what does LLINK/LPTR (Left Link/Left Pointer) typically point to?

<p>Predecessor node (D)</p>
Signup and view all the answers

Which type of linear list has pointers only to the successor node?

<p>Singly linked list (D)</p>
Signup and view all the answers

Flashcards

Binary Tree

A tree where each node has at most two children.

Complete Binary Tree

A binary tree with the maximum possible number of nodes in all levels.

Left Child Position

In linear representation, the left child is at position 2 * N

Right Child Position

In linear representation, the right child is at position 2 * N + 1.

Signup and view all the flashcards

Linked List

Data structure where elements are linked, not stored in adjacent memory locations.

Signup and view all the flashcards

Dynamic Memory Allocation

Memory allocated during the program's execution.

Signup and view all the flashcards

Non-Sequential Storage

A storage method where elements are not necessarily stored in contiguous memory locations.

Signup and view all the flashcards

Circular Linked List

List where the last node points back to the first node.

Signup and view all the flashcards

Doubly Linked List

List where nodes can be traversed in both forward and reverse directions.

Signup and view all the flashcards

Node Structure

In a linked list, each node needs a data field and pointer field.

Signup and view all the flashcards

Predecessor pointer

LLINK / LPTR refers to the predecessor node

Signup and view all the flashcards

Singly Linked List

List where each node points only to the next node in the sequence.

Signup and view all the flashcards

Directed Graph

A graph in which the edges have a direction associated with them.

Signup and view all the flashcards

Arc

An edge with a defined direction.

Signup and view all the flashcards

Weighted Graph

A graph where each edge has a weight/cost associated with it.

Signup and view all the flashcards

Self Loop

Edge connecting a vertex to itself.

Signup and view all the flashcards

Parallel Edges

Multiple edges between the same pair of vertices.

Signup and view all the flashcards

MultiGraph

A graph possessing self-loops or parallel edges.

Signup and view all the flashcards

Simple Graph

A graph without self-loops or parallel edges.

Signup and view all the flashcards

Complete Graph

Graph where every vertex is adjacent to every other vertex.

Signup and view all the flashcards

Study Notes

Unit 3: Data Structures - Multiple Choice Questions

  • A binary tree can have at most two children.
  • A complete binary tree contains the maximum possible nodes at all levels.
  • A complete binary tree contains the maximum possible number of nodes at all levels, except possibly at the last level.
  • In a linear representation of a binary tree, the left child node of a node at position N is at position 2 * N.
  • In a linear representation of a binary tree, the right child node of a node at position N is at position 2*N + 1.
  • A linked list is a linear type of data structure.
  • A linked list is an example of dynamic memory allocation.
  • A storage representation of a linked list in memory is typically non-sequential.
  • A singly linked list is a one-way list.
  • A data structure that contains a data field and a pointer field is a linked list.
  • In a circular linked list, the last node points to the first node.
  • In doubly linked lists, traversal can be performed in both directions.
  • In a linked list, each node contains at least two fields: a data field and a pointer to the next node.
  • A circular linked list is a type of linked list in which none of the nodes contains a NULL pointer.
  • A node in a doubly linked list has a minimum of three fields.
  • A singly linked list is also known as a one-way list.
  • A double linked list is also known as a two-way list.
  • Each node in a singly linked list typically has 2 fields.
  • In the context provided, LLINK / LPTR is the pointer pointing to the predecessor node.
  • A linear list where the pointer points only to the successor node is a singly linked list.

Unit 4: Graphs and Searching - Multiple Choice Questions

  • A digraph is known as a directed graph.
  • In a digraph's ordered pair (Vi, Vj), the edge is directed from Vi to Vj.
  • A directed edge is known as an arc.
  • A graph or digraph is termed weighted if all edges have labels representing weights.
  • An edge where the start and end vertices are the same (Vi, Vi) is a self-loop.
  • Multiple edges between the same pair of vertices are parallel edges.
  • A graph with self-loops or parallel edges is a multi-graph.
  • A graph without self-loops or parallel edges is a simple graph.
  • A graph G where each vertex Vi is adjacent to every other vertex Vj is a complete graph.
  • A path starting and ending at the same vertex is a cycle.
  • If a graph has no cycles, it's an acyclic graph.
  • A vertex with no connected edges is an isolated vertex.
  • The number of edges connected to a vertex is the degree of the vertex.
  • A node with an in-degree of 0 is a source node.
  • A node with an out-degree of 0 is a sink node.
  • A vertex with an in-degree of 1 and out-degree of 0 is a pendant vertex.
  • A graph where every pair of distinct vertices is connected is a connected graph.
  • Sorting is arranging data in ascending or descending order.
  • Finding the closest pair requires sorting first.
  • The process to find a particular element from the array is Search.
  • For an unordered array the sorting used for an array is Sequential Search.
  • For searching ordered array the most appropriate algorithm is Binary Search.
  • Binary Search makes the minimum possible comparisons.
  • Sequential file organization is used in all types of storage devices.
  • Serial processing involves accessing records one after the other in physical order.
  • Sequential processing involves accessing records in ascending order by a key or index item.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser