Home » Aptitude Questions and Answers » C# Aptitude Questions and Answers

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

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.