C Programming Quiz


Play this C quiz that will help you to excel in C certification exams, placements etc. This C programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This C programming test enables you to assess your knowledge of C programming.

Take the Free Practice Test



C MCQs

Practice C MCQ Questions, which will help you in understanding programming concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

C Quiz

Try Free C Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

C Quiz

1. What is the output generated by the following code?
    #define square (a) (a*a)     printf("%d", square (4+5) ) ;

81
4
29
None of the above.

2. what is the inital value of extern storage class specifier?

0
Null
Garbage
Infinite

3. First version of C Programming language is ____ .

K&R
C89
ANSI
R&K

4. What is the correct syntax of enum?

enum flag{constant1, constant2, constant3, ....... };
enum flag(constant1, constant2, constant3, ....... );
enum flag[constant1, constant2, constant3, ....... ];
enumflag{constant1, constant2, constant3, ....... };

5. The type of linked list in which the node does not contain any pointer or reference to the previous node:

Circularly singly linked list
Singly linked list
Circular doubly linked list
Doubly linked list

6. Identify the trigraph sequence for^.

??/
??=
??
??!

7. Which operator connects the structure name to its member name?

-
.
Both (b) and (c)
None of the above

8. What is size of int in C ?

2 bytes
4 bytes
8 bytes
Depends on the system/compiler

9. C can be used on?

Only MS-Dos operating System
Only Linux operating system
Only Windows operating system
All of the above

10. What is the output of this program? (Assume that base address of a is 1000 and size of integer is 32 bit)

int main()
{
    int a[10];
    a++;
    printf("%u", a);
    return 0;
}

1004
1002
1008
Lvalue Required

Results