Online Test for C

  1. It is necessary that a loop counter must only be an int. It cannot be a float.
    True
    False

  1. continue keyword skip one iteration of loop?
    True
    False


  1. C Language developed at _____?
    AT & T's Bell Laboratories of USA in 1972
    AT & T's Bell Laboratories of USA in 1970
    Sun Microsystems in 1973
    Cambridge University in 1972

  1. ferror( ) reports any error that might have occurred during a read/write operation on a file.
    True
    False

  1. Which one of the following sentences is true ?
    The body of a while loop is executed at least once.
    The body of a do ... while loop is executed at least once.
    The body of a do ... while loop is executed zero or more times.
    A for loop can never be used in place of a while loop.

  1. sizeof( ) is a function that returns the size of a variable.
    True
    False


  1. Who is father of C Language?
    Bjarne Stroustrup
    Dennis Ritchie
    James A. Gosling
    Dr. E.F. Codd

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

  1. Find Error/Output in follwing code:
  2.                                 
    void main()
    
    {
      printf("%d", printf("computer science"));
    }
    computer science16
    16computer science
    computer science
    computer science18

  1. Two case constants within the same switch statement can have the same value.
    True
    False

Social Sharing
Search