Type Here to Get Search Results !

[ NEW ] Data Structure MCQ Questions and Answers [ SET - 5 ] | Data Structure MCQ ebook

 

Data Structure MCQ ebook

1. A graph G with n nodes bipartite if it contains 

    n edges
     a cycle of odd length
    no cycle of odd length
ANSWER= (C) no cycle of odd length

 

2. Which of the following data structure is the best for implementing a priority queue?

     Heap
    Array
    Stack
ANSWER= (A) Heap

 

3. First link node of list is accessed from a pointer named

     tail
    head
    terminator
ANSWER= (B) head

 

4.  The vertex, removal of which makes a graph disconnected is called 

    Pendant vertex 
     bridge 
     articulation point 
ANSWER= (C)  articulation point 

 

5. Data Structure that are created by user as per their requirement are known as

    primitive data structure
     non-primitive data structure
    both a & b
ANSWER= (A) primitive data structure

 

6. Which of the following is useful in implementing quick sort?

    Stack
    Set
    List
ANSWER= (D) Queue

 

7. A vertex of in-degree zero in a directed graph is called 

    articulation point 
    sink 
    isolated vertex
ANSWER= (C) isolated vertex

 

8.  The number of edges in a regular graph of degree d and n vertices is

     maximum of n,d
    n + d
     nd
ANSWER= (D) nd/2

 

9. A  ____ is a linear collection of self-referential structures, called nodes, connected by pointer links.

    Queue
     Linked list
    Tree
ANSWER= (B)  Linked list

 

10. Adjacency matrix of a digraph is identity

    identity
    symmetric
    asimmetric
ANSWER= (B) symmetric

 

11. Data structre is divided into _____ parts.





ANSWER= (A) 2

 

12. In ___ Data Structure data can be processed one by one sequentially

     array
    linked list
    tree
ANSWER= (B) linked list

 

13. Which data structure is used for breadth first traversal of a graph? 

    Stack 
    Queue
    Both stack and queue
ANSWER= (B) Queue

 

14. What is the number of nodes in a full binary tree with depth 3?





ANSWER= (D) 7

 

15. Which of the following operation is not supported by a queue?

     Inserting element at rear
    Removing element from front
    Removing element from middle
ANSWER= (C) Removing element from middle

 

16. BFS

     scans all incident edges before moving to the other vertex 
    scans adjacent unvisited vertex as soon as possible
    is same as backtracking
ANSWER= (B) scans adjacent unvisited vertex as soon as possible

 

17. What kind of list is best to answer many questions such as “what is the item at position n?”

    Singly-linked lists
    Doubly-linked lists
    Lists implemented with an array
ANSWER= (C) Lists implemented with an array

 

18.  Each Algorithm begins with a ___.

    Condition
    Parameter
    Return Statement
ANSWER= (D) Header

 

19. A non-planar graph with minimum number of vertices has

    9 edges, 6 vertices 
    6 edges, 4 vertices
    10 edges, 5 vertices
ANSWER= (C) 10 edges, 5 vertices

 

20. In top-down approach-

    A problem is subdivided into subproblems; each one is attacked without worrying about others.
    A problem is tackled from beginning to end in one go.
    Subproblems are put together to solve the main problem.
ANSWER= (A) A problem is subdivided into subproblems; each one is attacked without worrying about others.

 

21. What is the worst-case time for binary search finding a single item in an array?

    Quadratic time
    Linear time
     Logarithmic time
ANSWER= (C) Logarithmic time

 

22. Any connected graph with x vertices must have at least

    x+ 1 edges. 
     x-1 edges
     x edges
ANSWER= (B)  x-1 edges

 

23. Which of the following name does not relate to stacks?

    fifo lists
    lifo list
    piles
ANSWER= (A) fifo lists

 

24.What is sparsity of a matrix?

    The fraction of non-zero elements over the total number of elements
    The fraction of zero elements over the total number of elements
    The fraction of total number of elements over the non-zero elements
ANSWER= (B) The fraction of zero elements over the total number of elements

 

25. Maximum number of edges in a n-node undirected graph without self loop is


    n(n-1)/2
    n-2
ANSWER= (B) n(n-1)/2

 

26. A data structure where elements can be added or removed at either end but not in the middle is called …

    linked lists
    stacks
    queue
ANSWER= (D) dequeue

 

27. Which of the following is false?

    Suffix array is used in string matching problems
    Suffix array is always sorted
    Suffix array contains all the suffixes of the given string
ANSWER= (D) Suffix array is always unsorted

 

28. A linear list in which each node has pointers to point to the predecessor and successors nodes is called as

    singly linked list
     circular linked list
    doubly linked list
ANSWER= (C) doubly linked list

 

29.  BFS constructs

    a minimal cost spanning tree of a graph 
    a depth first spanning tree of a graph
    a breath first spanning tree of a graph 
ANSWER= (A) a minimal cost spanning tree of a graph 

 

30. Each Node contain minimum two fields one field called data field to store data. Another field is of type _________.

    pointer to class
     pointer to an integer
     pointer to character
ANSWER= (D) pointer to node



Friends if you like this post,kindly comment bellow and do share your responce.Thank You for Visiting.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Below Post Ad