C Multiple Choice Questions

  1. The best data structure to check whether an arithmetic expression has balanced parenthesis is a
    1. Queue
    2. Stack
    3. Tree
    4. List
Answer :
B
Explanation:
Added By : Rajesh

  1. Which of the following data structures is useful in traversing a given graph by Depth first search(DFS)?
    1. Stack
    2. Queue
    3. List
    4. None of the above
Answer :
A
Explanation:
Added By : Jaipal


  1. Which of the following data structures is useful in traversing a given graph by Breadth first search(BFS)?
    1. Stack
    2. Queue
    3. List
    4. Tree
Answer :
B
Explanation:
Added By : Misthi

  1. Which one of the following in-place sorting algorithms needs the minimum number of swaps?
    1. Insertion Sort
    2. Quick Sort
    3. Heap Sort
    4. Selection Sort
Answer :
D
Explanation:
Added By : Lakshya

  1. Why we use malloc and calloc for
    1. Dynamic memory allocation
    2. Static memory allocation
    3. Both dynamic and static memory allocation
    4. None of the above
Answer :
A
Explanation:
Added By : Samay

  1. An array is
    1. Probably the most widely used data structure
    2. a homogeneous structure
    3. a random access structure
    4. All of the above
Answer :
D
Explanation:
Added By : Nistha


  1. The ________ operator is true only when both the operands are true.
    1. or
    2. and
    3. boolean
    4. bitwiseor
Answer :
B
Explanation:


Added By : Shabnam

  1. ________ function is used to move the file position to desired location within the file.
    1. fread
    2. fwrite
    3. fseek
    4. fscanf
Answer :
C
Explanation:
Added By : Praveen

Post Your Question
Social Sharing
Search