Online Test for C

  1. Find Error/Output in follwing code:
  2.                                 
    void main() 
    

      int x=10,*y,**z; 
      y=&x; 
      z=&y; 
      printf(\"%d%d%d\",*y,**z,*(*z)); 
    }
    101010
    100xaa54f10
    Run time error
    No Output

  1. Blank spaces may be inserted between two words to improve the readability of the statement.
    True
    False


  1. Which of the following search algorithm requires a sorted array?
    Linear search
    Hash search
    Binary search
    All of these

  1. A zero value is considered to be false and a non-zero value is considered to be true.
    True
    False

  1. Find Error/Output in follwing code:
  2.                                 
    int main ()
    
    {
      int x = 20, y = 35;
      x = y++ + x++;
      y = ++y + ++x;
      printf ("%d %d n", x, y);
    }
    55 92
    56 93
    57 94
    None of the above

  1. The worst case time complexity of AVL tree is better in comparison to binary search tree for
    Search and Insert Operations
    Search and Delete Operations
    Insert and Delete Operations
    Search, Insert and Delete Operations


  1. Which data structure type is NOT linear from the following?
    Doubly Link List
    2D Array
    Binary Search Tree
    Queue

  1. Which is an invalid name of identifier?
    world
    addition23
    test-name
    factorial

  1. The "C" language is
    Context free language
    Context sensitive language
    Regular language
    None of the above

Post Your Question
Social Sharing
Search