Related Topics
Take Another Quiz

C Language Quiz

3 Questions
Programming Quizzes & Trivia

INSTRUCTIONS: 1. NO STUDENT IS ALLOWED TO LEAVE THE EXAMINATION BEFOUR THE SCHEDULED TIME OF EXAMINATION. 2. NO ELECTRONIC EQUIPMENTS IS ALLOWED IN EXAMINATION ROOM. 3. ATTEMPT ALL QUESTION COMPLETELY 4. Time 45 min

Questions and Answers
  • 1. 
    Void main() { int const * p=5; printf("%d",++(*p)); }
    • A. 

      COMPILER ERROR

    • B. 

      6

    • C. 

      ADDRESS VALUE

    • D. 

      5

    • E. 

      NONE

  • 2. 
    Main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }
    • A. 

      Mmm aaaa nnnnn

    • B. 

      Mmmmm aaa nnnn

    • C. 

      Mmmm aaaa nnnn

    • D. 

      Mmm aaa nnn

    • E. 

      NONE

  • 3. 
    6. main() { extern int i; i=20; printf("%d",i); }
    • A. 

      LINKER ERROR

    • B. 

      COMPILER ERROR

    • C. 

      20

    • D. 

      ADDRESS

    • E. 

      NONE