Recents in Beach

C Programming MCQ For WBJECA ( SET - 10)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 10)

C programming MCQ
  1. Predict the output of Program ?

    main()
    {
       int const i=3 ;
       i++ ;
       printf("%d",i) ;
    }
    1. error
    2. 3
    3. 4
    4. 2
    Answer: A
    Explantion: None


  2. what is the answer of C programming ?

    main()
    {
       int j ;
       if( j++ && ( j==1) )
           printf("true");
       else
           printf("false") ;
    }
    1. error
    2. true
    3. false
    4. None
    Answer: C
    Explantion: None


  3. which one currect answer ?

    main()
    {
       int j=0 ;
       if( j == 0)
       {
           printf("true");
       }
           printf("false") ;
    }
    1. error
    2. true
    3. false
    4. truefalse
    Answer: D
    Explantion: None.


  4. what is the outcome of this program ?

    main()
    {
       int i=3-1+2/2 ;
       printf("%d",i) ;
    }
    1. 0
    2. 1
    3. 2
    4. 3
    Answer: D
    Explantion: None


  5. which one is correct answer ?

    main()
    {
       while( 1 )
       {
           printf("true");
       }
    }
    1. error
    2. infinite time executting
    3. true
    4. None of above
    Answer: B
    Explantion: None


  6. what is the out-come of that program ?

    main()
    {
       int i=3,j=5 ;
       printf("%d%d%d%d",i,j) ;
    }
    1. 3 5 3 5
    2. 3 5
    3.  3 5 garbage garbage
    4.  garbage garbage 3 5
    Answer: C
    Explantion: None


  7. whai is the output ?

    main()
    {
       int i=99,j=66 ;
       printf("%C %C",i,j) ;
    }
    1. c B
    2. C b
    3. c
    4. b
    Answer: A
    Explantion: None


  8. Which loop is best to perform the operation then test the conditin ?

    1. do...while loop
    2. while loop
    3. for loop
    4. all are same
    Answer: A
    Explantion: None


  9. Which of the following function is pre-defined ?

    1. input()
    2. sqrt()
    3. print()
    4. main()
    Answer: B
    Explantion: None


  10. 10

    Which Datatype will throw an error when we perform modulus operation (%) ?

    1. short
    2. float
    3. int
    4. all of above
    Answer: B
    Explantion: None



 More C programming MCQ  for 

Post Graduate Entrance Examination



Post a Comment

0 Comments