C - Structure and Union Questions and Answers

Take Exam

The topic C – Structure and Union is frequently featured in C programming MCQ sections of campus placements and technical interviews for companies like Infosys, TCS, and Wipro. Understanding how structures and unions store data is vital for efficient memory management in C. This topic strengthens the fundamentals of data organization, helping candidates write optimized and modular code. Practicing C programming questions and answers on Structure and Union will enhance your understanding and help you tackle programming interview challenges effectively.

C - Structure and Union

Showing 10 of 51 questions

21. Identify the wrong statement.

  • Structure variable can be passed as argument.
  • Pointter to structure can be passed as argument
  • Member variable of a structure can be passed as argument.
  • None of the above.
Show Answer Report

22. Union is

  • a special type of structure
  • a pointer data type
  • a function data type
  • not a data type
Show Answer Report

23. The restriction with union is

  • The last member can only be initialized
  • The first member can only be initialized.
  • Any member can be initialized.
  • Union cannot be initialized
Show Answer Report

24. Union differs from structure in the following way.

  • All members are used at a time.
  • Only one member can be used at a time.
  • Union cannot have more members.
  • Union initializes all members as structure.
Show Answer Report

25. Identify the correct statement.

  • Union can be members of structures.
  • Structures can be members of unions.
  • Both options a and b
  • Union can contain bit field.
Show Answer Report

26. What is not possible with union?

  • Array of union
  • Pointer to union
  • Self-referential union
  • None of the above
Show Answer Report

27. Structure is used to implement the data structure.

  • stack
  • queue
  • tree
  • all the above
Show Answer Report

28. The nodes in a linked list are implemented using

  • self-referential structure
  • nested structure
  • array of structure
  • ordinary structure
Show Answer Report

29. Identify the wrong statement.

  • An array is a collection of data items of same data type.
  • An array declaration reserves memory space and structure declaration does not reserve memory space.
  • Array uses the keyword array in its declaration.
  • A structure is a collection of data items of different data types.
Show Answer Report

30. Identify the wrong statement.

  • An array can have bit fields.
  • A structure may contain bit fields.
  • A structure has declaration and definition.
  • A structure variable can be initialized.
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test