C Multiple Choice Questions

  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


  1. The do...while looping statement
    1. is executed only once if the condition is true.
    2. is also known as entry-controlled loop.
    3. is executed at least once if the condition is false.
    4. is unconditional looping statement..
Answer :
C
Explanation:
Added By : Rachita

  1. Which of these assignments is invalid?
    1. short s = 48;
    2. float f = 4.3;
    3. double d = 4.3;
    4. int I = `1`;
Answer :
D
Explanation:
Added By : Shubham

Post Your Question
Social Sharing
Search