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. A program which translates a high level language program into a machine language program is called

Compiler
Interpreter
Both A and B
none of the above

2. What is the output of this program?

int main()
{
   printf("%c", ~('W'*-1));
   return 0;
}

S
T
U
V

3. Which function is used to delete the allocated memory space?

Dealloc()
free()
Both A and B
None of the above

4. Which of the following statement is True?

User has to explicitly define the numeric value of enumerations
User has a control over the size of enumeration variables.
Enumeration can have an effect local to the block, if desired
Enumerations have a global effect throughout the file.

5. Which of the following is an incorrect syntax to pass by reference a member of a structure in a function?

(Assume: struct temp{int a;}s;)

func(&s.a);
func(&(s).a);
func(&(s.a));
None of the above

6. ___________ is a C-directive which is also used to define the aliases for various data types.

#const
#def
#define
#dir

7. How many times value of j is checked in the below code ?

#include 
    int main()
    {
        int j = 0;
        do {
            j++;
            printf("");
        } while (j < 5);
    }

3
4
5
1

8. When a recursive function is called in the absence of an exit condition, it results in an infinite loop due to which the stack keeps getting filled(stack overflow). This results in a run time error.

TRUE
FALSE
Can be true or false
Can not Say

9. Threads operate faster than processes.

TRUE
FALSE
Can be true or false
Can not say

10. What is the default return type if it is not specified in function definition?

void
int
float
short int

Results