--:--









Quiz for Defining and declaring structures

Course: C Language | Subject: Unit 7 | Topic: Structures and Unions



Logo

Q1: Which keyword is used to define a structure in C?

Logo

Q2: Which of the following is a valid structure declaration?

Logo

Q3: Where can a structure be defined in a C program?

Logo

Q4: What is the size of an empty structure in C?

Logo

Q5: Which operator is used to access members of a structure variable?

Logo

Q6: Which operator is used to access members of a structure pointer?

Logo

Q7: Which of the following is a correct way to declare a structure variable?

Logo

Q8: What does typedef do when used with structures?

Logo

Q9: Which statement is correct for nested structures?

Logo

Q10: Which of the following is valid?

Logo

Q11: Which keyword is used to define an anonymous structure?

Logo

Q12: What is the purpose of struct tags?

Logo

Q13: Which storage class can be used with a structure variable?

Logo

Q14: Which of these is not a valid structure member type?

Logo

Q15: Which of the following is true for structure size?

Logo

Q16: What is the default access specifier for structure members in C?

Logo

Q17: Which declaration is valid?

Logo

Q18: Which statement is false?

Logo

Q19: Which is correct for structure initialization?

Logo

Q20: Which function can return a structure in C?

Are you ready to start test? Set your time limit