C Language Fundamentals: 16 MCQs
All 16 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 6 questions
Q1. Who created the C programming language?
BeginnerAnswers and explanations are in the Veda app.
Q2. Which of the following best describes C?
BeginnerAnswers and explanations are in the Veda app.
Q3. What is the correct order of the four stages of building a C program?
BeginnerAnswers and explanations are in the Veda app.
Q4. Which line is a preprocessor directive rather than a C statement?
BeginnerAnswers and explanations are in the Veda app.
Q5. What is the entry point of every C program?
BeginnerAnswers and explanations are in the Veda app.
Q6. C was developed by Dennis Ritchie at Bell Labs in the early 1970s, primarily to implement the UNIX operating system.
BeginnerAnswers and explanations are in the Veda app.
Building up · 5 questions
Q7. A program calls `printf` but does not include `stdio.h`. At which stage does the failure most likely appear?
IntermediateAnswers and explanations are in the Veda app.
Q8. A learner writes `int *p;` and thinks `*` means multiplication. What is the correct interpretation?
IntermediateAnswers and explanations are in the Veda app.
Q9. Which statement about C memory management is correct?
IntermediateAnswers and explanations are in the Veda app.
Q10. How is a C string represented?
IntermediateAnswers and explanations are in the Veda app.
Q11. Which of these is a real-world use of C?
IntermediateAnswers and explanations are in the Veda app.
Topper level · 5 questions
Q12. A programmer allocates memory with `malloc` but never calls `free`. What is the consequence?
AdvancedAnswers and explanations are in the Veda app.
Q13. A program frees a pointer and then dereferences it. What is the result?
AdvancedAnswers and explanations are in the Veda app.
Q14. Why is C often preferred over Python for writing a device driver?
AdvancedAnswers and explanations are in the Veda app.
Q15. Which statement about the compilation pipeline is correct?
AdvancedAnswers and explanations are in the Veda app.
Q16. Given the following C code snippet, what will be the output when executed? ```c #include <stdio.h> int main(void) { int a = 5, b = 7; int *p = &a; *p += b; printf("%d\n", a); return 0; } ```
AdvancedAnswers and explanations are in the Veda app.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Paper Solver
Get Veda free See what students get
Free to start · Android app and web · More than 40 languages