Q.No.1

What is the correct way to declare a union named 'data' with members 'number' (int) and 'name' (char array of 20) in C?

Q.No.2

How do you access a member 'price' of a union variable 'product' in C that is of type 'Product' with members 'id' (int) and 'price' (float)?

Q.No.3

What keyword is used to define a structure in C?

Q.No.4

What is a union in C used for?

Q.No.5

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

Q.No.6

How do you define a union inside a structure named 'item' with members 'id' (int) and 'price' (float) in C?

Q.No.7

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

Q.No.8

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

Q.No.9

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

Q.No.10

What is the correct way to declare a pointer to a structure 'person' 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


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