- Home
- PDF downloads
- Computer Science MCQs PDF
- C Programming MCQs PDF
C Programming MCQs PDF Download
Download 146 C Programming MCQs from Computer Science as a free PDF, with answers. Every question is also available online with an explanation, so you can practise, check your answers and revise the parts you get wrong. Last updated 19 November 2026.
Download C Programming MCQs PDF
Your PDF is downloading
Help a friend prepare too: share this free C Programming PDF.
Preview: first 10 C Programming MCQs
1. Which storage class in C keeps a local variable alive for the entire program?
- A. extern
- B. register
- C. static
- D. auto
2. In a typical 32-bit C implementation, what is sizeof(int)?
- A. 4 bytes
- B. 2 bytes
- C. 8 bytes
- D. 1 byte
3. Which header file must be included to use printf() and scanf()?
- A. stdlib.h
- B. string.h
- C. math.h
- D. stdio.h
4. The index of the first element of an array in C is:
- A. 0
- B. 1
- C. −1
- D. the array name
5. A pointer variable in C stores:
- A. the size of a variable
- B. a function name
- C. a memory address
- D. a copy of the data itself
6. The function malloc() is declared in which header file?
- A. stdio.h
- B. malloc.h
- C. memory.h
- D. stdlib.h
7. The free() function is used to:
- A. clear the terminal screen
- B. release dynamically allocated memory
- C. delete a file permanently from disk
- D. close an open file handle
8. The function strlen() returns:
- A. the number of characters excluding the null terminator
- B. the number of characters including the null terminator
- C. the size of the allocated buffer
- D. the number of words in a string
Show answer
Correct answer: A – the number of characters excluding the null terminator
See the explanation9. Which format specifier is used in printf() to display a float value?
- A. %f
- B. %d
- C. %c
- D. %s
10. Which operator is used to obtain the address of a variable in C?
- A. ->
- B. .
- C. &
- D. *
More Computer Science topics
- C++ and Object-Oriented Programming MCQs PDF 115
- PHP MCQs PDF 91
- Cloud Computing MCQs PDF 85
- HTML MCQs PDF 75
- Django MCQs PDF 57
- Algorithms and Data Structures MCQs PDF 54
- Software Engineering MCQs PDF 52
- MySQL MCQs PDF 48
- Bootstrap MCQs PDF 36
- Jquery MCQs PDF 29
- Operating Systems MCQs PDF 23
- Javascript MCQs PDF 20
- Computer Networks MCQs PDF 18
- Cybersecurity MCQs PDF 17
Full subject & exam PDFs
- Computer Science MCQs PDF 992
- NTS Computer Science MCQs PDF 455
- PPSC IT Computer Science MCQs PDF 346
- Campus Interviews Computer Science MCQs PDF 346
- GATE CS Computer Science MCQs PDF 102
- UGC NET CS Computer Science MCQs PDF 75
- PPSC Computer Science MCQs PDF 44
- Technical Interviews Computer Science MCQs PDF 44
C Programming MCQs PDF – FAQ
Is the C Programming MCQs PDF free?
Yes. The C Programming MCQs PDF is completely free. You do not need an account; just choose how many questions you want and press Download PDF.
How many questions are in the C Programming MCQs PDF?
There are 146 C Programming MCQs with answers. PDFs are made topic by topic: pick a topic and download 25, 50, 75, 100, 200, 300 or up to 500 questions in one file.
Does the PDF include the answers?
Yes. Choose "Answer key at the end" for a self-test sheet, or "Answer under each question" for quick revision. The online version also explains each answer.
Can I practise C Programming MCQs online?
Yes. Press Practice online to answer the same questions on MCQsExam, see explanations, and take a timed test with a free certificate.
Is the C Programming PDF updated?
The PDF is rebuilt automatically whenever new C Programming MCQs are added or corrected. It was last updated on 19 November 2026.