Online C Programming Quiz Test

Topics covered

Memory Management, Pointers
Function prototype, Decision making - branching & looping
Debugging C Programs, File handling
Advance C ( Used for System Programming such as OS, Compilers, Kernels etc)

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

C Programming Quiz helps Recruiters & Hiring Managers to validate the proficiency of candidates in C before an interview. C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope, and recursion, while a static type system prevents many unintended operations. This C language quiz is designed to check the development and programming skills of C Programmer- As per Industry Standards.

The C language quiz test contains questions on following Topics:

  • Memory Management

  • Pointers

  • Function prototype

  • Decision making - branching & looping

  • Debugging C Programs

  • File handling

  • Advance C ( Used for System Programming such as OS, Compilers, Kernels etc) 

This C programming online quiz is designed & validated by our experienced subject matter experts (SME)s. Employers can ask the candidate to appear for this C quiz online. Using powerful reporting, you can have a detailed analysis of the test results to help you make a better hiring decision and predict the candidate’s performance.

This pre-employment test is useful for hiring:
  • C Programmers
  • Software Developer (0-2 yrs experience)
  • Senior Software Engineer

Test details:

This C language quiz test enables employers to identify & hire C programmers by evaluating working skills and job readiness. For this reason, the emphasis is on evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The test may contain MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, Whiteboard Questions, Audio / Video Questions, True or False.

Test Details: 20 minutes

10 Application Questions

The combination of Application questions helps to evaluate Technical as well as practical Skills of Candidates.

C Language Test

Question #1 of 3

Consider the following code snippet, first printf statement prints a value 3, what value will be printed by the second printf statement?
(Note: No other new file descriptors are opened while executing this program) 

int main()
     int df1= dup(STDOUT_FILENO);
     int df2= dup(STDOUT_FILENO);
     printf("%d", df1);
     printf("%d", df2);
     return 0;

    • Any positive value

    • Error: Reduntant command

    • 1

    • 4

    • 0

Question #2 of 3

Given the code snippet:
int main() {
    int p1 = fork();
    int p2 = fork();
    if(p1 == 0 || p2 == 0) {
  return 0;

How many times will Hello be printed?

    • 1

    • 2

    • 3

    • 4

Question #3 of 3

Predict the output of the given program.

int main()
        int c = 0;
        int p1 = fork();
        int p2 = fork();
        if(p2 == 0)
                printf("%d\n", c);
        return 0;

    • 1

    • 2

    • 3

    • 1

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address

24.00 Out of 40.00
23 Minutes

Java EE




Oracle PL/SQL


Analytical Thinking


Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.


Java EE, Oracle PL/SQL, Analytical Thinking




It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Take your first step to hire job fit candidate


How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Take your first step to hire job fit candidate