Recents in Beach

C Programming MCQ For WBJECA ( SET - 8)

WBJECA MCQ FOR NEW SYLLABUS

C Programming MCQ ( SET - 8)

C programming MCQ
  1. Which of the following are example of iteration in C Programming Language ?

    1. do-While
    2. while
    3. for
    4. all of above
    Answer: D
    Explantion: None


  2. Which operator is known as ternary operator ?

    1. ;
    2. ::
    3. ? :
    4. ? ;
    Answer: C
    Explantion: None


  3. Associativity of an operator are ?

    1. Right to left
    2. Left to Right
    3. Random
    4. both A & B
    Answer: D
    Explantion: None.


  4. How many logical operator in c programming language ?

    1. two
    2. three
    3. four
    4. one
    Answer: B
    Explantion: None


  5. Can function definition be present in header files ?

    1. no
    2. yes
    3. Depends on compiler
    4. none
    Answer: B
    Explantion: None


  6. All keywords in C programming language are in ____________ ?

    1. UpperCase letter
    2. CamelCase letters
    3. LowerCase letters
    4. None
    Answer: C
    Explantion: None


  7. what will be the output of program ?

    main()
    {
         int x=10;
         x+=10;
         printf(%d,x);
    }
    1. 10
    2. 20
    3. 30
    4. none
    Answer: B
    Explantion: None


  8. What will be the output of program ?

    main()
    {
         int x=10;
         int x=20;
         printf(%d,x);
    }
    1. 15
    2. 25
    3. 10
    4. 20
    Answer: D
    Explantion: None


  9. what will be the output of program ?

    main()
    {
         int x=10;
         int j=10;
         printf(%d %d,x,j++);
    }
    1. 11 10
    2. 10 10
    3. 10 11
    4. none of above
    Answer: B
    Explantion: None


  10. 10

    what will be the output of program ?

    main()
    {
         int x=10;
         printf(%d %d,x,x++);
    }
    1. 11 garbage
    2. 10 garbage
    3. 10 11
    4. 11 10
    Answer: D
    Explantion: None

 More C programming MCQ  for 

Post Graduate Entrance Examination



Post a Comment

0 Comments