Skip to content

Paper II · Unit 7: Data Structures and Algorithms

Data Structures

Data Structures is a topic inside Unit 7 (Data Structures and Algorithms) of UGC NET Computer Science and Applications, Paper II (code 87). GateIQ has published 130 questions classified under this topic — 50.4% of everything recorded in this unit, and 130 of them carry a written solution.

What this topic covers

Arrays and their Applications; Sparse Matrix, Stacks, Queues, Priority Queues, Linked Lists, Trees, Forest, Binary Tree, Threaded Binary Tree, Binary Search Tree, AVL Tree, B Tree, B+ Tree, B* Tree, Data Structure for Sets, Graphs, Sorting and Searching Algorithms; Hashing

Syllabus wording above is the official heading for this topic; the question counts are GateIQ’s own classification of its published archive.

Try Data Structures PYQs free

Attempt the 5 most recent published questions on this topic right here, with the published answer and explanation after each check. No account is needed and nothing is saved. Practice tracking and analytics are part of UGC IQ.

0 of 5 checked
  1. 1Previous year question

    Consider the following statements about heap sort algorithm:

    1. The MAX-HEAPIFY procedure which runs in Olg⁡(n)\mathrm{O} \lg (n) time, is the key to maintaining the max heap property
    2. The BUILD-MAX-HEAP procedure, which runs in Olg⁡(n)\mathrm{O} \lg (n) time, produces max-heap from an unordered input array
    3. The MAX-HEAP-INSERT, which runs in O\text{O} (lg⁡n)(\lg n) time, implements the insertion operation
    4. The HEAP-INCREASE-KEY procedure runs in O\text{O} (nlg⁡n)(\mathrm{n} \lg n) time , to set the key of new node of its correct value

    Choose the correct answer from the options given below:

    Choose an option to check it.
  2. 2Previous year question

    Given below are two statements: one is labelled as Assertion A\mathrm{A} and the other is labelled as Reason R\mathrm{R}.

    Assertion A\mathrm{A}: The AVL trees are more balanced as compared to Red Black trees, but they may cause more rotations during insertion and deletion

    Reason R\mathrm{R}: A Red Black tree with n nodes has height that is greater than 2log⁡2(n+1)2 \log _{2}(n+1) and the AVL tree with n nodes has height less than log⁡Φ(5(n+2))−2\log _{\Phi}(\sqrt{5}(n+2))-2 (where Φ\Phi is golden ratio)

    In the light of the above statements, choose the correct answer from the options given below.

    Choose an option to check it.
  3. 3Previous year question

    Given below are two statements: one is labelled as Assertion A\text{A} and the other is labelled as Reason R\text{R}.

    Assertion A: It is possible to create doubly linked list using only one pointer with every node.

    Reason R: By storing the XOR\text{XOR} of the addresses of the previous and next nodes.

    In the light of the above statements, choose the most appropriate answer from the options given below.

    Choose an option to check it.
  4. 4Previous year question

    A three dimensional array in C++\mathrm{C}++ is declared as int A[a][b]\mathrm{A}[\mathrm{a}][\mathrm{b}] [c]. Consider that array elements are stored in row major order and indexing begin from 0. Here the address of an item at the location A[r][s][t]\mathrm{A}[\mathrm{r}][\mathrm{s}][\mathrm{t}] computed in terms of word length w\mathrm{w} of an integer is

    Choose an option to check it.
  5. 5Previous year question
    Suppose a circular queue of capacity ( n−1)\mathrm{n}-1) elements is implemented with an array of n\mathrm{n} elements. Assume that the insertion and deletion operations are carried out using REAR and FRONT as array index variable respectively. Initially,

    REAR=FRONT=0\mathrm{REAR}=\mathrm{FRONT}=0. The conditions to detect queue empty and queue full are

    A. EMPTY: REAR ==F R O N T
    FULL : (( REAR+1)  mod n==\bmod \text{n}== FRONT

    B. EMPTY: (( FRONT +1) mod n==) \bmod \text{n}== REAR
    FULL: REAR+1  mod n==\bmod \mathrm{n}==FRONT

    C. EMPTY REAR+1)  mod n\bmod \text{n}==FRONT
    FULL: REAR ==== FRONT

    D. EMPTY: REAR== FRONT
    FULL: (( FRONT+1)  mod n==\bmod \text{n}== REAR
    Choose an option to check it.

125 more questions on Data Structures

These 5 are free to try without an account. The rest of the published questions on Data Structures are part of UGC IQ: see what it includes, or create an account to get started.

Data Structures: questions people ask

How many UGC NET Computer Science questions are asked on Data Structures?

GateIQ has published 130 UGC NET Computer Science previous year questions on Data Structures, and 130 of them carry a written solution. That is 50.4% of the questions in Unit 7, Data Structures and Algorithms.

Which unit of UGC NET Computer Science Paper 2 is Data Structures in?

Data Structures is a topic of Unit 7, Data Structures and Algorithms, in Paper II (Computer Science and Applications, code 87).

Can I practise Data Structures PYQs for free?

Yes. The 5 most recent published questions on this topic are free on this page with no signup, and each shows the published answer with its explanation. The full archive, practice tracking and analytics are part of UGC IQ.

Related topics in Unit 7

Full syllabus · Paper II overview