Data Structure
IT Companies placement papers preparation test and data structure practice test
Questions
Null pointer is used to tell which of the following?
- End of link list
- Empty pointer field of structure
- The link list is empty
- None of these
P is a pointer to the structure. A member “mem” of that structure is referenced by
- *p.mem
- (*p).mem
- *(p.mem)
- None of these
The prefix expression for the infix expression a*(b+c)/e-f is
- /*+bc-ef
- -/*+abcef
- -/*a+bcef
- None of these
A stack can be used to
- allocate resources by the operating system
- schedule jobs on round-robin basis
- process procedure call in program
- none of these
In link list, a node contains at least
- node address field
- data field
- next address field
- none of these
In 'C', malloc ( ) function returns a pointer to
- Integer
- Character
- Structure
- String
The total number of comparisons in bubble sort is
- o(n)2
- o(n2)
- o(2n)
- None of these
Degree of a vertex is
- Number of a edges which has that vertex as an endpoint
- The number of neighbors if has
- Both (1) and (2)
- None of the above
A tree consists of
- finite number of nodes
- finite set of directed access
- both (1) and (2)
- none of these
Which among the following is not a representation of graph?
- Adjacency matrix
- Edge list
- Adjacency list
- None of these
The criterian for data structure evolution is
- Space utilization
- Time efficiency
- Both (1) and (2)
- None of these
Pick up the invalid data structure operation from the following.
- Traversing
- Searching
- Merging
- None of these
Pick up non dynamic data structure from the following.
- List
- Stack
- Tree
- None of these
Which data structures are used to evaluate a postfix expression?
- Stacks
- Queues
- Dequeues
- None of these
Memory allocation at the run time is known as
- Static memory allocation
- Dynamic memory allocation
- Paging
- None of these
What is the level of root node of a tree?
- -1
- 0
- 1
- None of these
“Get a Node, store new element and Insert the new node at the top” refers to insert operation in non empty
- Stack
- Queue
- Array
- None of these
The tree traversal technique in which the root is traversed before its children is known as
- Post-order traversal
- Pre-order traversal
- In-order traversal
- None of these
Memory allocation at the compile time is known as
- Static memory allocation
- Dynamic memory allocation
- Paging
- None of these
In which of the following trees balance factor of each node be either of 1, -1or 0?
- Threaded tree
- Lexical ordered binary tree
- AVL tree
- None of these
Which of the following is an example of linear data structure?
- Linked list
- Binary tree
- Graph
- None of these
Which of the following is a hash function?
- Folding
- Quadratic Probing
- Chaining
- Open addressing
A vertex with degree one in a graph is called
- Leaf
- Pendent vertex
- End vertex
- None of these
Following data structure can filter from overflow problem
- Stack Implemented using array
- Linked list
- Circularly linked list
- None of these
<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
- Stack
- Queue
- Arrays
- None of these