C# Structures Aptitude Questions and Answers | Set 1

C# Structures Aptitude Questions | Set 1: This section contains aptitude questions and answers on C# Structures.
Submitted by Nidhi, on April 10, 2020

1) There are following statements are given below, which of them are correct about structure in C#?
  1. The structure is composite data-type; it contains de-similar data elements.
  2. The structure is a reference type.
  3. An instance of the structure stored in the stack.
  4. The structure does not support by C#.NET.

Options:

  1. Only A
  2. Only C
  3. B and D
  4. A and C

2) A structure can contain?
  1. Methods
  2. Constructors
  3. Properties
  4. Indexers

Options:

  1. Only A
  2. Only B
  3. A and B
  4. All

3) Structure members are by default?
  1. Public
  2. Private
  3. Protected
  4. Internal

4) Structures are?
  1. Value type
  2. Reference type
  3. Both
  4. None

5) What keyword is used to declare a structure in C#.NET?
  1. structure
  2. System.Structure
  3. struct
  4. str






Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.