C certification

Sign in Sign in

C

About

Our C test will help you understand your proficiency with programming in the C Language. This test covers the following topics: Arrays, Basics, C Expressions, Functions, Input/Output, Pointers, Program Statements, and Strings. Difficulty level: for experienced programmers.

Number of questions: 100
Time limit for question: 60 seconds

Suppose someone writes increment macro (i.e. which increments the value by one) in following ways: #define INC1(a) ((a)+1) #define INC2 (a) ((a)+1) #define INC3( a ) (( a ) + 1) #define INC4 ( a ) (( a ) + 1)

Choose one:
  • Only INC1 is correct.
  • All (i.e. INC1, INC2, INC3 and INC4) are correct.
  • Only INC1 and INC3 are correct.
  • Only INC1 and INC2 are correct.

With respect to following ```for``` loops in C, pick the best statement. Assume that there is a prior declaration of ```i``` in all cases for (i = 0; i < 10 ; i++) // (i) for ( ; i < 10 ; i++) // (ii) for (i = 0; ; i++) // (iii) for (i = 0; i < 10 ; ) // (iv) for ( ; ; ) // (v)

Choose one:
  • Only (i) and (v) would compile successfully. Also (v) can be used as infinite loop.
  • Only (i) would compile successfully.
  • All would compile successfully but behavior of (ii), (iii) and (iv) would depend on compiler.
  • All would compile successfully.

What’s going to happen when we compile and run the following C program? #include "stdio.h" int main() { int j = 0; for ( ; j < 10 ; ) { if (j < 10) printf("Nuclear", j++); else continue; printf(“Power”); } return 0; }

Choose one:
  • Compile Error due to use of continue in for loop.
  • No compile error but it will run into infinite loop printing Nuclear.
  • No compile error and it’ll print NuclearPower 10 times followed by Power once.
  • No compile error and it’ll print NuclearPower 10 times.

Our certificates

Getting your career started and need to impress a potential employer? We can conduct any of our tests in a manner that will allow us to verify your identity and check that the test result is indeed your own work. If you pass the test, we will issue a certificate just like the one pictured. You will be then able to obtain both an electronic certificate suitable for sharing on Facebook and Linkedin, a corresponding badge on your personal page, and a downloadable PDF version for printing.

Certificate authencity can be verified with a special tool. Simply enter the certificate ID to verify claims of completion.

PDF version:
Online competence badge:
Certified in C
2017-11-18 #xxxx-xxx-xxx-xxx

Price: $5


Sign in Sign in