C Online Test

TestDome skill assessments are used by more than 5,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

The C online test assesses candidates' knowledge of programming in the C language.

It's an ideal test for pre-employment screening. A good C developer needs to be able not only to solve problems using C but also understand the implications of low level optimizations.

This online test requires candidates to solve coding problems in C.

Recommended Job Roles
Back-End Developer
C Developer
Sample Candidate Report

Sample Free Questions

Watched Videos


C Arrays Pointers Public

Implement the count_views function. It accepts an array of pointers to the Viewer struct, the size of the array, and the character array with the video name. It should return the number of Viewers who have watched a Video with the name video_name.

For example,

Video videos[] = { {.name = "Soccer", .unique_views = 500},
                   {.name = "Basketball", .unique_views = 1000} };
Viewer viewer = {.username = "Dave", .watched_videos = videos,
                 .watched_videos_size = 2};    
Viewer *viewers[] = { &viewer };

calling count_views(viewers, 1, "Soccer") should return 1.

Inspect Bits


C Bit manipulation Public

Implement the inspect_bits function that checks if given number contains 2 or more consecutive ones in its binary representation. If it does, the function should return 1. Otherwise, it should return 0.

For example, inspect_bits(13) should return 1 as it contains 2 consecutive ones in its binary representation (1101).

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Allocate String, Copy Bit, Max Sum, Shipping, Init Range, Read Write Execute, Segment, Square, Tiles, Username
C Memory management Bit manipulation Algorithmic thinking Arithmetic Strings Pointers 2D array Pass by reference Regex
Score Distribution
Pricing For Premium Questions