Data Structure

IT Companies placement papers preparation test and data structure practice test

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Null pointer is used to tell which of the following?

  1. End of link list
  2. Empty pointer field of structure
  3. The link list is empty
  4. None of these
Question 2 Multiple Choice (Single Answer)

P is a pointer to the structure. A member “mem” of that structure is referenced by

  1. *p.mem
  2. (*p).mem
  3. *(p.mem)
  4. None of these
Question 3 Multiple Choice (Single Answer)

The prefix expression for the infix expression a*(b+c)/e-f is

  1. /*+bc-ef
  2. -/*+abcef
  3. -/*a+bcef
  4. None of these
Question 4 Multiple Choice (Single Answer)

A stack can be used to

  1. allocate resources by the operating system
  2. schedule jobs on round-robin basis
  3. process procedure call in program
  4. none of these
Question 5 Multiple Choice (Single Answer)

In link list, a node contains at least

  1. node address field
  2. data field
  3. next address field
  4. none of these
Question 6 Multiple Choice (Single Answer)

In 'C', malloc ( ) function returns a pointer to

  1. Integer
  2. Character
  3. Structure
  4. String
Question 7 Multiple Choice (Single Answer)

The total number of comparisons in bubble sort is

  1. o(n)2
  2. o(n2)
  3. o(2n)
  4. None of these
Question 8 Multiple Choice (Single Answer)

Degree of a vertex is

  1. Number of a edges which has that vertex as an endpoint
  2. The number of neighbors if has
  3. Both (1) and (2)
  4. None of the above
Question 9 Multiple Choice (Single Answer)

A tree consists of

  1. finite number of nodes
  2. finite set of directed access
  3. both (1) and (2)
  4. none of these
Question 10 Multiple Choice (Single Answer)

Which among the following is not a representation of graph?

  1. Adjacency matrix
  2. Edge list
  3. Adjacency list
  4. None of these
Question 11 Multiple Choice (Single Answer)

The criterian for data structure evolution is

  1. Space utilization
  2. Time efficiency
  3. Both (1) and (2)
  4. None of these
Question 12 Multiple Choice (Single Answer)

Pick up the invalid data structure operation from the following.

  1. Traversing
  2. Searching
  3. Merging
  4. None of these
Question 13 Multiple Choice (Single Answer)

Pick up non dynamic data structure from the following.

  1. List
  2. Stack
  3. Tree
  4. None of these
Question 14 Multiple Choice (Single Answer)

Which data structures are used to evaluate a postfix expression?

  1. Stacks
  2. Queues
  3. Dequeues
  4. None of these
Question 15 Multiple Choice (Single Answer)

Memory allocation at the run time is known as

  1. Static memory allocation
  2. Dynamic memory allocation
  3. Paging
  4. None of these
Question 16 Multiple Choice (Single Answer)

What is the level of root node of a tree?

  1. -1
  2. 0
  3. 1
  4. None of these
Question 17 Multiple Choice (Single Answer)

“Get a Node, store new element and Insert the new node at the top” refers to insert operation in non empty

  1. Stack
  2. Queue
  3. Array
  4. None of these
Question 18 Multiple Choice (Single Answer)

The tree traversal technique in which the root is traversed before its children is known as

  1. Post-order traversal
  2. Pre-order traversal
  3. In-order traversal
  4. None of these
Question 19 Multiple Choice (Single Answer)

Memory allocation at the compile time is known as

  1. Static memory allocation
  2. Dynamic memory allocation
  3. Paging
  4. None of these
Question 20 Multiple Choice (Single Answer)

In which of the following trees balance factor of each node be either of 1, -1or 0?

  1. Threaded tree
  2. Lexical ordered binary tree
  3. AVL tree
  4. None of these
Question 21 Multiple Choice (Single Answer)

Which of the following is an example of linear data structure?

  1. Linked list
  2. Binary tree
  3. Graph
  4. None of these
Question 22 Multiple Choice (Single Answer)

Which of the following is a hash function?

  1. Folding
  2. Quadratic Probing
  3. Chaining
  4. Open addressing
Question 23 Multiple Choice (Single Answer)

A vertex with degree one in a graph is called

  1. Leaf
  2. Pendent vertex
  3. End vertex
  4. None of these
Question 24 Multiple Choice (Single Answer)

Following data structure can filter from overflow problem

  1. Stack Implemented using array
  2. Linked list
  3. Circularly linked list
  4. None of these
Question 25 Multiple Choice (Single Answer)

<span style="font-size:10.0pt;font-family:Arial;mso-fareast-font-family:"Times" new="" roman";mso-bidi-font-family:arial;color:black;mso-ansi-language:en-us;mso-fareast-language:en-us;mso-bidi-language:ar-sa="">“FRONT=REAR” pointer refers to empty

  1. Stack
  2. Queue
  3. Arrays
  4. None of these