Career upgrade: Learn practical AI skills for better jobs and higher pay.
Level up
All Practice Exams

100+ Free C CLE Practice Questions

Pass your C++ Institute C Certified Entry-Level Programmer (CLE) exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
Not published Pass Rate
100+ Questions
100% Free
1 / 100
Question 1
Score: 0/0

Given the program below, which statement about its return value is correct? #include <stdio.h> int main(void) { printf("hello\n"); }

A
B
C
D
to track
2026 Statistics

Key Facts: C CLE Exam

30

Exam Questions

C++ Institute CLE syllabus

45 min

Exam Duration

C++ Institute CLE syllabus

70%

Passing Score (Normalized)

C++ Institute CLE syllabus

$69

Exam Fee (USD)

C++ Institute pricing

OpenEDG TestNow

Test Provider

C++ Institute / OpenEDG

Lifetime

Validity

C++ Institute certification policy

8

Exam Blocks

C++ Institute CLE syllabus

C language

Subject (not C++)

C++ Institute CLE syllabus

C++ Institute CLE (CLE-12-001) is a 30-item, 45-minute online-proctored exam delivered by OpenEDG TestNow with a 70% normalized passing score and a starting fee of USD 69. Topics span eight blocks with weights from 7% to 16.5%, focused entirely on the C language: basics, types and I/O, arithmetic and bitwise operators, decision-making, loops, arrays and memory, strings, and functions. The certification is issued for life with no recertification required.

Sample C CLE Practice Questions

Try these sample questions to test your C CLE exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1Which header from the C standard library must be included to call printf in a portable C program?
A.<stdio.h>
B.<stdlib.h>
C.<string.h>
D.<iostream>
Explanation: printf, scanf, fopen, and FILE are declared in <stdio.h>. <stdlib.h> provides general utilities such as malloc, free, atoi, and exit. <string.h> declares string and memory functions like strlen and memcpy. <iostream> is a C++ header and is not part of the C standard library.
2In the standard C compilation pipeline, which tool processes #include and #define directives before the compiler proper sees the source code?
A.Preprocessor
B.Linker
C.Assembler
D.Loader
Explanation: The C build pipeline runs preprocessor → compiler → assembler → linker. The preprocessor expands directives such as #include, #define, #ifdef, and #pragma to produce a translation unit, which the compiler then turns into assembly. The assembler converts that to object code, and the linker resolves symbols across object files and libraries.
3Which gcc command compiles main.c into an object file without invoking the linker?
A.gcc -c main.c
B.gcc -E main.c
C.gcc -S main.c
D.gcc -o main main.c
Explanation: The -c flag tells gcc to compile and assemble but stop before linking, producing main.o. -E stops after preprocessing and prints the result. -S stops after compilation and emits assembly (main.s). The default invocation with -o produces a fully linked executable.
4Which statement about the entry point of a hosted C program is correct?
A.main must return int and may be declared as int main(void) or int main(int argc, char *argv[]).
B.main must always return void and accept no parameters.
C.main may have any return type as long as it returns 0 on success.
D.main is required to call exit() before its closing brace.
Explanation: ISO C requires main to return int. The two portable forms are int main(void) and int main(int argc, char *argv[]). Reaching the closing } of main is equivalent to return 0; in C99 and later — calling exit() is not required.
5Which of the following is a valid single-line comment in C99 or later?
A.// this is a comment
B.# this is a comment
C.; this is a comment
D.<!-- this is a comment -->
Explanation: C99 added // single-line comments in addition to the original /* ... */ block style. The # character starts a preprocessor directive, ; ends a statement, and <!-- ... --> is HTML/XML markup, not C.
6Which form of #include is conventionally used for headers shipped with the C standard library?
A.#include <stdio.h>
B.#include "stdio.h"
C.#include {stdio.h}
D.#include (stdio.h)
Explanation: Angle brackets tell the preprocessor to look in the implementation-defined system include paths and are conventional for standard headers. Quotes search the current source file's directory first and then fall back to the system path, so they are typically used for project-local headers.
7Which identifier is INVALID in standard C?
A.2nd_value
B._value2
C.value2
D.Value_2
Explanation: A C identifier consists of letters, digits, and underscores and must start with a letter or underscore. 2nd_value begins with a digit, which is not allowed. The other three start with a letter or underscore and are valid.
8What does the following macro produce when called as SQUARE(2 + 3)? #define SQUARE(x) x * x
A.11
B.25
C.10
D.Compilation error
Explanation: Object-like and function-like macros are textually substituted before the compiler proper runs. SQUARE(2 + 3) expands to 2 + 3 * 2 + 3, and operator precedence makes that 2 + (3 * 2) + 3 = 11. The classic fix is parentheses: #define SQUARE(x) ((x) * (x)).
9Which preprocessor pattern is the traditional include guard for a header file?
A.#ifndef HEADER_H #define HEADER_H /* declarations */ #endif
B.#pragma include_once /* declarations */
C.#ifdef HEADER_H #define HEADER_H /* declarations */ #endif
D.#define HEADER_H /* declarations */
Explanation: The portable include guard tests #ifndef HEADER_H, defines the symbol on first inclusion, then closes with #endif so that subsequent inclusions skip the body. #pragma once is a common but non-standard alternative supported by most compilers.
10What is the role of the linker in a typical C build?
A.Combine object files and libraries, resolving external symbols, into an executable.
B.Expand macros and #include directives in source code.
C.Translate C source into assembly language.
D.Strip debug symbols out of an executable to reduce size.
Explanation: The linker takes one or more object files and libraries, resolves external symbol references (such as printf), and produces a final executable or shared object. Macro expansion is done by the preprocessor, source-to-assembly is done by the compiler, and stripping is a separate utility.

About the C CLE Exam

The C++ Institute C Certified Entry-Level Programmer (CLE) exam validates a candidate's ability to read and write basic programs in the C programming language (not C++). It covers the C compilation pipeline, built-in types, operators, decision-making statements, loops, arrays, pointers, dynamic memory, basic string handling, and function fundamentals. The exam is delivered online via OpenEDG TestNow.

Questions

30 scored questions

Time Limit

45 minutes

Passing Score

70% normalized

Exam Fee

$69 USD (C++ Institute / OpenEDG / Pearson VUE)

C CLE Exam Content Outline

16.5%

Loops

while, do-while, and for loops, break and continue, nested loops, infinite-loop idioms (for(;;)), and basic uses of goto for cleanup paths.

16.5%

Arrays, Pointers, and Memory Management

1D and 2D arrays, array-to-pointer decay, pointer arithmetic, NULL, dynamic memory with malloc, calloc, realloc, and free, and bugs such as double free and dangling pointers.

13.25%

Basic Concepts

C compilation pipeline (preprocessor, compiler, assembler, linker), structure of a C program, identifiers, keywords, comments, and standard headers like <stdio.h>.

13.25%

Data Types, Evaluations, and Basic I/O

int, short, long, long long, signed/unsigned, char, float, double, long double, size_t, fixed-width types in <stdint.h>, type conversion rules, printf/scanf format specifiers, and basic file I/O.

13.25%

Arithmetic, Logical, and Bitwise Operators

Arithmetic, relational, logical, bitwise (&, |, ^, ~, <<, >>), conditional ?:, compound assignment, comma operator, and sizeof, including precedence and short-circuit evaluation.

13.25%

Decision-Making Statements

if, if/else, else if chains, the dangling-else rule, switch with case and default labels, fall-through, and break inside switch.

7%

String Manipulation

Null-terminated strings as char arrays, strlen, strcpy, strcmp, strcat, character classification with <ctype.h>, and safe input alternatives (fgets vs gets).

7%

Functions Basics

Function declaration versus definition, pass-by-value semantics, passing pointers and arrays, return values, recursion, void parameter lists, and static local variables.

How to Pass the C CLE Exam

What You Need to Know

  • Passing score: 70% normalized
  • Exam length: 30 questions
  • Time limit: 45 minutes
  • Exam fee: $69 USD

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

C CLE Study Tips from Top Performers

1Compile and run every code snippet you study — CLE-12-001 features many 'what does this print' and 'which line fails to compile' items, so paper reading alone is not enough.
2Master pointer basics: declaration, address-of (&), dereference (*), NULL checks, pointer arithmetic, and array-to-pointer decay. These appear in roughly one in six items.
3Drill printf and scanf format specifiers (%d, %u, %ld, %lld, %f, %lf, %s, %c, %p, %x, %zu) including the matching argument types — wrong specifiers are a favorite trap.
4Practice the malloc-check-free pattern: always verify the return is non-NULL, free exactly once, and set the pointer to NULL after free to defuse double-free bugs.
5Know operator precedence well, especially that && binds tighter than ||, * binds tighter than +, and the comma operator has the lowest precedence of all.
6Build a small program with files split across multiple .c files plus a header, including the include-guard pattern with #ifndef/#define/#endif, to internalize the compilation pipeline.
7Memorize the standard signedness rules: char's signedness is implementation-defined, char constants like 'A' have type int in C, and integer division truncates toward zero.
8Practice fgets-based input rather than gets, which was removed from C11 — the exam favors safer-input idioms even at the entry level.

Frequently Asked Questions

What is on the C++ Institute CLE exam?

CLE-12-001 tests the C language at the entry level across eight blocks: Basic Concepts (13.25%), Data Types and I/O (13.25%), Arithmetic and Bitwise Operators (13.25%), Decision-Making (13.25%), Loops (16.5%), Arrays and Pointers (16.5%), String Manipulation (7%), and Functions Basics (7%). Despite the C++ Institute branding, the exam is purely about the C language and does not cover any C++ features such as classes, references, or namespaces.

How long is the CLE exam and how many questions does it have?

The C Certified Entry-Level Programmer exam consists of 30 weighted items delivered in 45 minutes, plus about 5 additional minutes for the non-disclosure agreement and tutorial. Items include single-choice, multiple-choice, gap-fill, and drag-and-drop formats. Scores are normalized to a percentage; you must score 70% or higher to pass.

What is the passing score for C CLE?

You must score 70% or higher on the CLE exam to pass. Because items are weighted, the 70% threshold is calculated against the total normalized points earned across all 30 questions, not a simple count of correct answers. There is no fail-on-domain rule — the score is computed in aggregate.

How much does the C++ Institute CLE exam cost?

The CLE exam starts at USD 69 for a single attempt or USD 86 for the exam plus one retake voucher. Candidates who complete the official C Essentials self-study course on the C/C++ Education Platform can earn a discounted exam voucher and a free retake bundle.

Where do I take the CLE exam?

The CLE is delivered online by the OpenEDG TestNow service. You schedule a session through the OpenEDG site, run a system check, and take the exam under online proctoring from your own computer. There is no Pearson VUE test-center option for this entry-level credential.

Is the CLE exam about C or C++?

The CLE is purely a C-language credential despite being issued by the C++ Institute. Items focus on the C compilation pipeline, C standard headers (stdio.h, stdlib.h, string.h), pointers, arrays, malloc/free, and C-style strings. C++ features such as classes, references, std::cout, namespaces, and templates do not appear on the exam.