0

Data Structure (NCO)

Description: DS
Number of Questions: 15
Created by:
Tags: DS Data Structures
Attempted 0/15 Correct 0 Score 0

______________ is recognised as a non-linear data structure.

  1. Stack

  2. Queue

  3. Linked list

  4. Tree

  5. Array


Correct Option: D
Explanation:

Tree is recognised as a non-linear data structure as data is stored in it in random order.

Which of the following is the essential condition required for binary search?

  1. The array list must be short in size.

  2. The array list must be arranged in descending order.

  3. The array list must be arranged in increasing order.

  4. The array list must have numbers in random order.

  5. The array list must be very lengthy.


Correct Option: C
Explanation:

This is the most essential condition required for performing binary search as correct values of pointers; Low, Mid and High can only be provided when the list is in increasing order.

_____________ is the process of accessing each element of the array exactly once to do some operation.

  1. Searching

  2. Sorting

  3. Traversing

  4. Merging

  5. Insertion


Correct Option: C
Explanation:

Traversing is the process of accessing each element of the array exactly once to do some operation.

_______________ is the order in which all the first row elements are stored in sequential memory location then all the second row elements are stored and so on.

  1. Column-major order

  2. Row-major order

  3. Identity matrix

  4. Null matrix

  5. Square matrix


Correct Option: B
Explanation:

Row-major order is the order in which all the first row elements are stored in sequential memory location then all the second row elements are stored and so on.

Which of the following is the greatest disadvantage of using arrays?

  1. Arrays are small in size.

  2. Arrays are very big in size.

  3. Arrays are static structures.

  4. Arrays are dynamic structures.

  5. Arrays are easier to implement.


Correct Option: C
Explanation:

This is the greatest disadvantage as once the size of the arrays is specified it remains fixed until the user changes it.

Which of the following is the operation in which a new data or element is inserted into the stacks?

  1. Pop

  2. Push

  3. Top

  4. Size

  5. Stack


Correct Option: B
Explanation:

This is the operation in which a new data or element is inserted into the stacks.

_______________ specifies the overflow condition in stack.

  1. Top = - 1

  2. Top = N - 1

  3. Top = 0

  4. Top = 1

  5. Top = N


Correct Option: B
Explanation:

This is the correct option as array subscript starts from 0, so it can have maximum of N - 1 subscript value from N number of elements.

Which of the following is the correct conversion of the infix expression A+B*C into postfix expression?

  1. AB+C*

  2. +A*BC

  3. ABC*+

  4. AB+*C

  5. AB*C+


Correct Option: C
Explanation:

This is the correct form of postfix expression for the given infix expression as in postfix expression operands come before the operators and also the precedence of operators is followed while evaluating any infix expression into postfix one.

Which of the following operators is used in C++ to dynamically allocate memory space for a new node in the linked list?

  1. Delete

  2. Malloc

  3. Calloc

  4. Delete []

  5. New


Correct Option: E
Explanation:

This operator is used in C++ to dynamically allocate memory space for a new node in the linked list.

Which of the following type of queues is the one in which all nodes are treated as circular such that the last node follows the first node?

  1. Simple queue

  2. Priority queue

  3. Dequeue

  4. Circular queue

  5. Square queue


Correct Option: D
Explanation:

This type of queue is the one in which all nodes are treated as circular such that the last node follows the first node.

___________ pointer is incremented in a queue when a new element is added.

  1. Front

  2. Rear

  3. Top

  4. Exit

  5. Break


Correct Option: B
Explanation:

This pointer is incremented in a queue when a new element is added.

Which of the following is the technique in which if a node is deleted from the linked list then the memory space of the deleted node is immediately reinserted into the free storage?

  1. Traversing

  2. Underflow

  3. Garbage collection

  4. Start

  5. Null


Correct Option: C
Explanation:

This is the technique in which if a node is deleted from the linked list then the memory space of the deleted node is immediately reinserted into the free storage.

Which of the following datatypes is used in C++ to implement linked list in a program?

  1. Array

  2. Pointer

  3. Structure

  4. Function

  5. Union


Correct Option: C
Explanation:

This datatype is used in C++ to implement linked list in a program.

Which of the following is the first operation performed on a linked list?

  1. Traversing a linked list

  2. Inserting an item into a linked list

  3. Creating a linked list

  4. Deleting an item from the linked list

  5. Searching an item in a linked list


Correct Option: C
Explanation:

This is the first operation performed on a linked list.

______________ is a tree in which each leaf node is at the same distance from the root.

  1. Binary tree

  2. Complete tree

  3. Subtree

  4. Leaf node

  5. Root node


Correct Option: B
Explanation:

Complete tree is a tree in which each leaf node is at the same distance from the root.

- Hide questions