Q.No.1

What keyword is used to define a structure in C?

Q.No.2

How do you access a member 'age' of a structure variable 'person' in C?

Q.No.3

In C, what is used to declare a union?

Q.No.4

What is a union in C used for?

Q.No.5

Which of the following is a correct way to define a structure 'point' with members x and y in C?

Q.No.6

What is the size of a structure in C determined by?

Q.No.7

How do you access a member 'city' of a structure variable 'address' that is inside another structure 'person' in C?

Q.No.8

What is a nested structure in C?

Q.No.9

What is the keyword used to define a union variable in C?

Q.No.10

In C, how do you initialize a structure variable 'student' of type 'Student' with members 'name' and 'age' to default values?


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