JNTU

JNTU B.Tech II DATA STRUCTURES Previous Question Paper (March 2021 - R15)

B.Tech | II | I | R15 | March 2021

Answer PaperPaper Code: 123BP/113BPMaximum Marks: 75Time: 3 hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Define data structure. Discuss different types of data structures and their application.

7 marks

Answer

A data structure is a specialized format for organizing, processing, retrieving, and storing data in a computer so that it can be accessed and worked with efficiently. It defines the relationship between the data and the operations that can be performed on the data.

Data structures are broadly classified into two categories:

  • Linear Data Structures: Data elements are arranged in a sequential or linear order. Examples include Arrays, Linked Lists, Stacks, and Queues. These are used for applications like implementing function call stacks, task scheduling, and maintaining ordered lists.
  • Non-Linear Data Structures: Data elements are arranged in a hierarchical or interconnected manner. Examples include Trees and Graphs. These are used for applications like file system organization, database indexing, and network routing algorithms.
b

Write an algorithm to insert new node at the beginning and at the end of a Singly Linked List.

8 marks

Answer

To insert a node into a Singly Linked List, assume a node structure with data and a next pointer.

Algorithm: Insert at Beginning

  1. Create a new node 'newNode'.
  2. Set newNode.data = value.
  3. Set newNode.next = head.
  4. Set head = newNode.

Algorithm: Insert at End

  1. Create a new node 'newNode'.
  2. Set newNode.data = value and newNode.next = null.
  3. If head is null, set head = newNode and return.
  4. Initialize temp = head.
  5. Traverse until temp.next is null: temp = temp.next.
  6. Set temp.next = newNode.
215 marks
a

Explain the procedure to evaluate postfix expression. Evaluate the following Postfix expression 7 3 4 + - 2 4 5 / + * 6 / 7 +.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write an algorithm to push and pop an element from linked stack.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

What is a binary tree? Construct a binary tree given the pre-order traversal and in-order traversals as follows:

Pre-Order Traversal: G B Q A C K F P D E R H

In-Order Traversal: Q B K C F A G P E D H R

7 marks

Answer

Sign in to view the complete answer paper.

b

What is a graph? Explain the properties of graphs.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Rearrange following numbers using quick sort: 10, 6, 3, 7, 17, 26, 56, 32, 72.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in detail about Linear and Binary search.

8 marks

Answer

Sign in to view the complete answer paper.

5

Develop a binary search tree resulting after inserting the following integer keys: 49, 27, 12, 11, 33, 77, 26, 56, 23, 6.

15 marks
a

Check whether the tree is almost complete or not?

5 marks

Answer

Sign in to view the complete answer paper.

b

Determine the height of the tree.

5 marks

Answer

Sign in to view the complete answer paper.

c

Write post order and preorder traversals.

5 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

What is an array? Discuss different types of array with examples.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain polynomial addition using arrays.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Convert following expression x+(y*z)–((n*m+o)/p) into post form.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss sparse matrix representation using linked list.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Show that the maximum number of nodes in a binary tree of height H is 2H+1 - 1.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write breadth first traversal algorithm. Explain with an example.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of DATA STRUCTURES from JNTU for B.Tech CSE II I, March 2021, R15.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in DATA STRUCTURES

Loading Question Papers

Fetching data from database...