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. 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

2. The EOF character can be included in a file as part of its data

TRUE
May Be
FALSE
Can't Say

3. What is short int in C programming?

The basic data type of C
Qualifier
Short is the qualifier and int is the basic datatype
All of the mentioned

4. Nested macros are allowed.

TRUE
May Be
FALSE
Can't Say

5. Which of the following are correctly formed #define statements?

#define INCH PER FEET 12
#define SQR(X) (X *X);
#define SQR(X) X*X
#define SQR(X) (X*X)

6. What is the meaning of using static before function declaration?

		   
static int demo(int a, int b)
{
    return (a + b);
}

Access to static functions is restricted to the file where they are declared
Static means nothing, sum() is same without static keyword.
Function need not to be declared before its use
None of the above

7. What is the output of the following code?

int main()
{
    int k=2;
    printf("%d == 1 is" "%s", k, k==1?"TRUE":"FALSE");
    return 0;
}

k == 1 is TRUE
2 == 1 is TRUE
2 == 1 is FALSE
K == 1 is FALSE

8. Threads operate faster than processes.

TRUE
FALSE
Can be true or false
Can not say

9. An array elements are always stored in ________ memory locations.?

Sequential
Random
Sequential and Random
None of the above

10. What is the output of this program?

void main()
{ 
      int i=5; 
      i = !i>10; 
      printf("%d", i); 
}

5
10
0
None of the above

Results