Data Structure

Ques:- When is insertion sort a good choice for sorting an array?
A. The array has only a few elements out of place
B. Each element of array requires a small amount of memory
C. The processor speed is fast
D. Each element of array requires a large amount of memory

0 3967
Ques:- The number of edges in a complete graph of n vertices is
A. n(n+1)/2
B. n(n-1)/2
C. n2/2
D. n

0 7696
Ques:- If two trees have same structure and but different node content, then they are called ___
A. Synonyms trees
B. Joint trees
C. Equivalent trees
D. Similar trees

0 9868
Ques:- If two trees have same structure and node content, then they are called ____
A. Synonyms trees
B. Joint trees
C. Equivalent trees
D. Similar trees

0 9856
Ques:- A graph is a tree if and only if graph is
A. Directed graph
B. Contains no cycles
C. Planar
D. Completely connected

0 1466
Ques:- An enqueue operation adds an element
A. At any position in the queue
B. To the front of the queue
C. To the rear of the queue
D. None of above

0 6582
Ques:- Which of the following is not an entity?
A. Book
B. Student
C. Employee
D. Roll number

0 7806
Ques:- A data item that can be used to distinguish between two entities (records) is known as
A. Alternate key
B. Primary key
C. Primary data item
D. Unique data item

0 6744
Ques:- What kind of list is best to answer many questions such as “what is the item at position n?”
A. Singly-linked lists
B. Doubly-linked lists
C. Lists implemented with an array
D. Circular- linked lists

0 2636
Ques:- A data structure whose elements form a sequence is known as
A. Heterogeneous data structure
B. Homogeneous data structure
C. Linear data structures
D. Non- linear data structure

0 899
Ques:- Which of following operations are generally not performed on report files?
A. Updation
B. Maintenance
C. Retrieval
D. All of above

0 993
Ques:- Which of the following statements about a binary tree is not correct?
A. Every binary tree has at least one node
B. Every non-empty tree has exactly one root node
C. Every node has at most two children
D. Every non-root node has exactly one parent

0 1728
Ques:- The average case complexity of quick sort for sorting n numbers is
A. O(n2)
B. O(nlog2n)
C. O(n)
D. O(log2n)

0 4937
Ques:- A dequeue operation removes an element
A. From the front of the queue
B. From any place in the queue
C. From the rear of the queue
D. None of above

0 8698
Scroll to top