C Multiple Choice Questions

  1. Which is an invalid name of identifier?
    1. world
    2. addition23
    3. test-name
    4. factorial
Answer :
C
Explanation:
Added By : Rakesh


  1. Which of the following is not an iterative statement?
    1. while
    2. do while
    3. switch
    4. for
Answer :
C
Explanation:
Added By : Anamika

  1. What is the purpose of getc()?
    1. read a character from STDIN
    2. read a character from a file
    3. read all file
    4. read file randomly
Answer :
B
Explanation:
Added By : Bhavesh


  1. Which data structure type is NOT linear from the following?
    1. Doubly Link List
    2. 2D Array
    3. Binary Search Tree
    4. Queue
Answer :
C
Explanation:
Added By : Jayesh

  1. Which of the following sorting algorithms does NOT have a worst-case running time of O(n2)?
    1. Insertion sort
    2. Merge sort
    3. Quicksort
    4. Bubble sort
Answer :
B
Explanation:
Added By : Aditya

  1. How many times is a do while loop guaranteed to loop?
    1. 0
    2. Variable
    3. 1
    4. Infinitely
Answer :
C
Explanation:
Added By : Yogendra


  1. Which of the following storage classes have global visibility in C?
    1. Auto
    2. Static
    3. Extern
    4. Register
Answer :
C
Explanation:
Added By : Deepak

  1. A full binary tree with n leaves contains
    1. n nodes
    2. 2n - 1 nodes
    3. log2 n nodes
    4. 2n nodes
Answer :
B
Explanation:
Added By : Deepak

Post Your Question
Social Sharing
Search