C Online Coding Test

  • Junior, senior or expert
  • Question bank or custom questions
  • Updated

A CoderPad C coding test is an online test for embedded and firmware engineers that you build in CoderPad Screen, with pointer and memory questions from the CoderPad question bank or your own. Choose junior, senior or expert questions, and CoderPad Screen scores each C submission automatically.

What can your C coding test cover?

The CoderPad question bank includes C questions on manual memory management, pointers and building linked lists from scratch. Choose the questions your embedded, firmware or operating system role needs, and add your own. Pointers hold memory addresses, and low-level work like this depends on them.

C skills to assess
  • Pointers and pointer arithmetic
  • Manual memory management (malloc, calloc, free)
  • Arrays and null-terminated strings
  • Linked lists and trees built from scratch
  • Threads with POSIX threads (pthreads)
Jobs using C
  • Embedded software engineer
  • Firmware engineer
  • Operating system engineer
  • Systems software developer
Question typesMultiple choice, coding exercises
LevelsJunior, Senior, Expert
QuestionsFrom the CoderPad question bank, your own questions, or both
Test lengthSet by the questions you choose

Sign up free to explore the question bank and try the candidate experience

Sample C coding question: Temperature closest to zero

Analyze a set of temperature readings to find the one closest to zero. Implement the C function closest_to_zero so it returns the temperature in the array ts that is closest to 0.

  • If ts is empty, return 0.
  • If two readings are equally close to zero, return the positive one. For example, if ts contains -5 and 5, return 5.
  • Temperatures are floating point numbers from -273 to 5526.
  • The parameter size is the number of readings in ts.
double closest_to_zero(double ts[], int size)
Bar chart of 15 sample temperatures between -12 and +13. The reading -1.7, highlighted in red, is the closest to zero.

What a good solution shows

  • Returns 0 for an empty array before reading any element.
  • Compares absolute values and returns the positive reading on a tie, such as 5 over -5.
  • Reads each value once, so the C function stays fast on large arrays.

Preview a sample coding test report

How is a C coding test scored?

CoderPad Screen auto-grades each candidate's answers and gives you a scored report. The report shows each candidate's strengths and weaknesses and compares their skills with others who took similar assessments.

Code playback shows how each candidate thinks:

  • See how they approach a problem and build their solution.
  • Note areas to explore further in later interviews.
  • Spot questionable or concerning behavior.
Code playback replays how a candidate wrote their answer.

How CoderPad prevents cheating in C tests

Copy/paste tracking shows when a C answer was pasted in rather than typed. To confirm they understand it, add a video follow-up question that asks them to explain their solution and the main decisions behind it.

  • Code playback

    See how candidates wrote their code or text.

  • Plagiarism detection

    Flags when a previous candidate's exact code is reused.

  • Copy/paste tracking

    Shows when code may have come from elsewhere.

  • AI follow-up questions

    Check candidates understand their code.

How building a C coding test works

  1. Build the test

    Pick C questions from the CoderPad question bank, write your own, or combine both.

  2. Invite candidates

    Send each candidate a link to the test by email.

  3. Candidates take the test

    They code in the browser, with nothing to install.

  4. Review results

    Read the scored report and watch the code playback.

Create and send coding assessments in 60 seconds, even if you're not techy. Choose the level and the number of questions, and add your own coding exercises whenever you need them.

How do you test C skills before hiring?

Combine a C coding test on pointers and memory, a review of firmware or driver code the candidate wrote, and a live debugging round. Years of C on a resume don't show whether someone frees every block of memory they allocate.

Questions to ask and signals to look for at each step:

  • Portfolio

    Ask for microcontroller firmware, device drivers or command-line tools written in C. They show work close to the hardware.

  • Code on GitHub

    Look for Makefiles, unit tests and memory checks with Valgrind or sanitizers.

  • Coding test level

    Use the junior level for graduate embedded roles and the expert level for engineers writing multithreaded or kernel-level C.

  • Live interview

    Ask the candidate to fix the swap-function bug from CoderPad's C interview questions.

How should you screen C candidates?

  • Send the C test before the hiring manager's first call, so that call can focus on hardware experience.
  • Include only the C questions the role needs, so the test stays short.
  • Say in the job ad that candidates will write C code that manages its own memory.

We had no unified approach or tool to assess technical ability. Today, CoderPad Screen enables us to test against a wide selection of languages and is continually updated.

CoderPad code interview all

Trusted by 4,000+ customers worldwide

Security and compliance

  • SSO / SAML

    Okta, Azure AD, Google and other SAML 2.0 providers, on the Enterprise plan.

  • SOC 2 Type 2

    SOC 2 Type 2 report available.

  • GDPR compliant

    GDPR and CCPA compliant.

Read about CoderPad security

Hire C developers with CoderPad

Request a demo