Welcome to www.mcqtutorial.com!!!!
      
      
MCQ Tutorial Search
Home Search Add Question Today's History Discussion Board Job Portal C

C Basics

Mock Test Contact Feedback
Home
Search
Add Question
Today's History
Discussion Board
Job Portal
C

C Basics

Mock Test
Subscribe/Unsubscribe
Email:
Social Media
Facebook

Misc Tutorials

References

Question and Answer Tutorial
Tutorials Point
Stack Overflow

MCQ Tutorial - C->C Basics

First Previous 1 2 3 4 Next Last
6.) Which of the following is not a valid variable name declaration?
Options are:
A.) int a3_;
B.) int _a3;
C.) int a_3;
D.) int 3_a;
7.) C99 standard guarantess uniqueness of _____ characters for external names
Options are:
A.) 30
B.) 32
C.) 29
D.) 31
8.) C99 standard guarantees uniqueness of ____ characters for internal names
Options are:
A.) 31
B.) 63
C.) 64
D.) 32
                        
9.) What is the out put of following C code:

    #include 
    int main()
    {
        int a[5] = {1, 2, 3, 4, 5};
        int i;
        for (i = 0; i < 5; i++)
            if ((char)a[i] == '5')
                printf("%d
", a[i]);
            else
                printf("FAIL
");
    }
Options are:
A.) Program will compile and print the output 5
B.) Program will compile and print the ASCII value of 5
C.) The compiler will flag an error
D.) Program will compile and print FAIL for 5 times
10.) The format identifier '%i' is also used for _____ data type?
Options are:
A.) double
B.) float
C.) int
D.) char
                        
First Previous 1 2 3 4 Next Last
Comment:
Name:Email:
Contact No.:
Copyright © 2014 by SBJ Group. All Rights Reserved. Developed and maintained by SBJ Group. Supported on Internet Explorer browser only