Q.No.1

What does #include directive do in C?

Q.No.2

How do you include a header file named 'stdio.h' using #include directive in C?

Q.No.3

What does #define directive do in C?

Q.No.4

What is the correct way to define a constant macro named PI with value 3.14159 using #define directive in C?

Q.No.5

What is the purpose of #ifdef directive in C?

Q.No.6

How do you check if a macro named DEBUG is defined using #ifdef directive in C?

Q.No.7

What does #ifndef directive do in C?

Q.No.8

How do you check if a macro named DEBUG is not defined using #ifndef directive in C?

Q.No.9

What does #else directive do in C preprocessor?

Q.No.10

What is the purpose of #endif directive in C?


About Simple Quiz

We're here to make learning fun and accessible. Whether you're a student, teacher, or just someone who loves quizzes, you can find something for you here. Test your knowledge across a wide range of subjects and see how much you know!


Get to know more

Quiz On

Explore preprocessor directives in C programming, including #define, #include, #ifdef, and conditional compilation.

Category

Discover the foundational principles of C programming, ideal for beginners entering the world of coding.


C Programming

Sector

Test your knowledge on the fundamentals of creating software by writing and understanding code in various programming languages.


Programming


Start A Quiz

Do you want to start quiz mode? In this mode, you’ll answer against a timer. When the timer runs out, answers auto-submit, and you get feedback.

Start A Quiz

Do you want to start quiz mode? You'll answer against a timer. When the timer runs out, answers auto-submit