C & C++ Programming Language Certification exam answers 2026: This page lists all 100 questions of the official C & C++ Programming Language Certification exam by Itronix Solutions, each with its four answer options and the correct answer highlighted in green. Use it to revise every topic before you attempt the test and earn your verifiable certificate.
About this certification: C++ is a general-purpose programming language that was developed as an enhancement of the C language to include object-oriented paradigm.
| Certification | C & C++ Programming Language Certification |
| Provider | Itronix Solutions |
| Category | Programming & Development |
| Total questions | 100 multiple-choice questions |
| Marks | 1 mark per question (100 marks) |
| Passing score | 80% (80 out of 100) |
| Retake | Available if you do not pass |
| Certificate | Verifiable online certificate |
Take the exam: C & C++ Programming Language Certification on Itronix Solutions. See every other Itronix exam in our complete list of Itronix certification answers.
C & C++ Programming Language Exam Questions and Answers
Questions 1 to 25
1. What is C++?
Correct answer: A. C++ supports both procedural and object oriented programming language
2. Which of the following is the correct syntax of including a user defined header files in C++?
Correct answer: B. #include “userdefined”
3. Which of the following is used for comments in C++?
Correct answer: D. both // comment or /* comment */
4. Which of the following is the correct identifier?
Correct answer: A. VAR_123
5. Which of the following features must be supported by any programming language to become a pure object-oriented programming language?
Correct answer: D. All of the above
6. The programming language that has the ability to create new data types is called___.
Correct answer: B. Extensible
7. C++ language is a successor to which language?
Correct answer: C. C
8. C++ follows ___.
Correct answer: A. Bottom-Up Design approach
9. How many keywords are in C++?
Correct answer: B. 95
10. Which operator has highest precedence?
Correct answer: C. ()
11. Which operator has highest precedence in * / % ?
Correct answer: D. all have same precedence
12. How to access and edit data in data file handling using structures
Correct answer: D. both A and B
13. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
Correct answer: A. X&
14. Which classes allow primitive types to be accessed as objects?
Correct answer: B. Virtual
15. When is std::bad_alloc exception thrown?
Correct answer: C. When delete operator cannot delete the allocated (corrupted) object
16. What happens if the following program is executed in C and C++? #include void func(void) { printf("Hello"); } void main() { func(); func(2); }
Correct answer: B. Error in both C and C++
17. Which of the following correctly declares an array in C++?
Correct answer: C. int array[10];
18. Which is more effective while calling the C++ functions?
Correct answer: C. call by reference
19. Which of the following is the correct definition of sorting?
Correct answer: D. Sorting is a type of process in which the data or information is ordered into a specific order. Example increasing orders, decreasing.
20. Which one of the following statements correctly refers to the Delete and Delete[] in C++ programming language?
Correct answer: B. The "Delete" is used for deleting a single standard object, whereas the "Delete[]" is used for deleting an array of the multiple objects
21. C was developed by:
Correct answer: B. Dennis Ritchie at Bell Labs
22. C++ was developed by:
Correct answer: B. Bjarne Stroustrup
23. Every C program starts execution from:
Correct answer: A. main()
24. #include <stdio.h> provides:
Correct answer: A. Standard input/output functions like printf
25. printf("%d", x) prints:
Correct answer: D. An integer value
Questions 26 to 50
26. scanf is used to:
Correct answer: C. Read formatted input
27. The format specifier %f is used for:
Correct answer: B. Floating-point numbers
28. The format specifier %c is used for:
Correct answer: B. A single character
29. The format specifier %s is used for:
Correct answer: D. A string
30. Each C statement ends with:
Correct answer: B. A semicolon
31. Single-line comments in C99 and C++ start with:
Correct answer: C. //
32. The size of char in C is:
Correct answer: C. 1 byte
33. An array in C is:
Correct answer: B. A collection of elements of the same type in contiguous memory
34. Array indexing in C starts at:
Correct answer: A. 0
35. A string in C is:
Correct answer: B. An array of characters ending with a null character
36. strlen() returns:
Correct answer: C. The length of a string excluding the null terminator
37. A pointer stores:
Correct answer: B. A memory address
38. The & operator gives:
Correct answer: D. The address of a variable
39. The * operator on a pointer:
Correct answer: A. Dereferences it to access the value
40. NULL pointer means:
Correct answer: A. A pointer that does not point to any valid memory
41. malloc() is used to:
Correct answer: B. Allocate memory dynamically on the heap
42. free() is used to:
Correct answer: D. Release dynamically allocated memory
43. A memory leak occurs when:
Correct answer: A. Allocated memory is never freed
44. A structure (struct) groups:
Correct answer: A. Variables of different types under one name
45. A union differs from a struct because:
Correct answer: A. All members share the same memory location
46. typedef is used to:
Correct answer: A. Create an alias for a data type
47. Call by value passes:
Correct answer: B. A copy of the argument
48. Call by reference (using pointers) allows a function to:
Correct answer: A. Modify the caller’s variable
49. Recursion is when:
Correct answer: A. A function calls itself
50. A for loop is best when:
Correct answer: B. The number of iterations is known
Questions 51 to 75
51. A do-while loop executes its body:
Correct answer: B. At least once
52. The switch statement selects code based on:
Correct answer: D. The value of an expression
53. The break statement in a switch:
Correct answer: B. Exits the switch block
54. fopen() is used to:
Correct answer: C. Open a file
55. fclose() is used to:
Correct answer: C. Close an open file
56. The preprocessor directive #define is used to:
Correct answer: A. Define macros or constants
57. Header files typically contain:
Correct answer: C. Declarations of functions and macros
58. The sizeof operator returns:
Correct answer: A. The size in bytes of a type or variable
59. Bitwise AND is written as:
Correct answer: D. &
60. Logical AND is written as:
Correct answer: D. &&
61. The increment operator ++ increases a value by:
Correct answer: D. 1
62. In C++, cout is used to:
Correct answer: B. Output data to the console
63. In C++, cin is used to:
Correct answer: B. Read input from the console
64. In C++, namespace std contains:
Correct answer: D. The standard library names
65. A class in C++ is:
Correct answer: A. A user-defined type combining data and functions
66. An object is:
Correct answer: B. An instance of a class
67. A constructor in C++:
Correct answer: B. Initialises an object when it is created
68. A destructor in C++ is named with:
Correct answer: A. A tilde followed by the class name
69. The new operator in C++:
Correct answer: D. Allocates memory and calls a constructor
70. The delete operator in C++:
Correct answer: B. Frees memory allocated with new
71. Encapsulation in C++ uses:
Correct answer: C. Access specifiers private, protected and public
72. By default, class members in C++ are:
Correct answer: B. private
73. By default, struct members in C++ are:
Correct answer: B. public
74. Inheritance in C++ allows:
Correct answer: C. A class to derive properties from another class
75. A virtual function enables:
Correct answer: A. Runtime polymorphism via dynamic dispatch
Questions 76 to 100
76. A pure virtual function makes a class:
Correct answer: B. Abstract
77. Function overloading means:
Correct answer: D. Multiple functions with the same name but different parameters
78. Operator overloading allows:
Correct answer: B. Defining custom behaviour for operators with user-defined types
79. A reference in C++ is:
Correct answer: D. An alias for an existing variable
80. Templates in C++ allow:
Correct answer: B. Generic programming with type parameters
81. The STL provides:
Correct answer: D. Containers, algorithms and iterators
82. std::vector is:
Correct answer: D. A dynamic array container
83. std::map stores:
Correct answer: B. Sorted key-value pairs
84. std::sort is:
Correct answer: B. An STL algorithm to sort ranges
85. Exception handling in C++ uses:
Correct answer: A. try, throw and catch
86. Smart pointers like std::unique_ptr help to:
Correct answer: D. Manage memory automatically and prevent leaks
87. std::shared_ptr uses:
Correct answer: A. Reference counting
88. RAII means:
Correct answer: B. Resources are tied to object lifetime and released in destructors
89. The const keyword indicates:
Correct answer: C. A value that should not be modified
90. static local variables:
Correct answer: B. Retain their value between function calls
91. Undefined behaviour in C/C++ means:
Correct answer: A. The language standard places no requirements on the result
92. A segmentation fault often occurs when:
Correct answer: D. Accessing invalid memory
93. GCC is:
Correct answer: A. A compiler for C, C++ and other languages
94. gdb is:
Correct answer: A. A debugger
95. The linker’s job is to:
Correct answer: D. Combine object files and libraries into an executable
96. C is widely used for:
Correct answer: C. Operating systems and embedded systems
97. C++ is widely used for:
Correct answer: D. Games, high-performance systems and applications
98. The main difference between C and C++ is:
Correct answer: D. C++ adds object-oriented and generic programming features
99. An infinite loop occurs when:
Correct answer: D. The loop condition never becomes false
100. The modulus operator % returns:
Correct answer: A. The remainder of division
How to Pass the C & C++ Programming Language Exam
- Read every question carefully; most options look similar, so look for the most precise answer.
- Revise the questions above topic by topic rather than memorising letters, because option order can change in the live test.
- You need 80 correct answers out of 100 to pass, so aim to understand at least 85 to stay safe.
- If you do not clear it on the first attempt, review the questions you missed and use the retake option.
Frequently Asked Questions
How many questions are in the C & C++ Programming Language Certification exam?
The exam has 100 multiple-choice questions, each worth 1 mark.
What is the passing score for the C & C++ Programming Language Certification?
You need at least 80% (80 out of 100) to pass and receive the certificate.
Can I retake the C & C++ Programming Language Certification exam?
Yes. If you score below 80%, you can retry the test after reviewing the topics.
Is the Itronix certificate verifiable?
Yes. Every certificate issued by Itronix Solutions has a unique ID that can be checked on the Itronix verify-certificate page.
More Programming & Development Certification Answers
- Advanced Java Certification Exam Answers
- Android Development Certification Exam Answers
- Automation Testing Certification Exam Answers
- Blockchain Certification Exam Answers
- Certified Quality Engineer Professional Certification Exam Answers
- Core Java Programming Professional Certification Exam Answers
- Data Structures and Algorithm Certification Exam Answers
- Database Management System DBMS Certification Exam Answers
Disclaimer: These answers are provided for learning and revision. Questions and answers are checked regularly; if you find a mistake, let us know in the comments.
Priya Dogra – Free Certifications, Exam Answers & Career Guides Free certification exam answers, courses, scholarships and career guides for learners worldwide