Q.No.1

How do you declare a structure 'point' with members 'x' and 'y' inside a header file 'point.h' in C?

Q.No.2

Which of the following statements about unions in C is true?

Q.No.3

What happens if you attempt to access a union member that was not the last one assigned a value?

Q.No.4

What is the correct way to declare a nested structure 'address' inside a structure 'person' in C?

Q.No.5

In C, what is the maximum number of members a structure can have?

Q.No.6

How do you declare a structure 'book' with members 'title' (string) and 'price' (float) in C?

Q.No.7

Which function is used to compare two structures of the same type in C?

Q.No.8

What is the correct way to declare a union 'data' with members 'value' (int) and 'name' (string) 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

Learn about structures and unions in C programming, including definition, member access, nested structures, and their use in functions.

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