<AptiCode/>

The ultimate platform for developers to practice, compete, and grow. Join our community of passionate coders today.

TwitterLinkedIn

Platform

ProblemsCompilerAptitude TestsContests

Company

About UsContactRewardsContribute

Legal

Terms of ServicePrivacy PolicyShipping PolicyRefund Policy

© 2025 AptiCode. All rights reserved.

Made withfor developers

topic/Properties

Question NoTitleTypeMarks
678.A property can be declared inside a class, struct, Interface.
MCQ
5
680.AStudentclass has a property calledrollNoandstuis a reference to aStudentobject and we want the statementstu.RollNo = 28to fail. Which of the following options will ensure this functionality?
MCQ
5
681.If a classStudenthas an indexer, then which of the following is the correct way to declare this indexer to make the C#.NET code snippet given below work successfully?Student s = new Student(); s[1, 2] = 35;
MCQ
5
679.Which of the following statements is correct about properties used in C#.NET?
MCQ
5
682.Which of the following statements are correct?The signature of an indexer consists of the number and types of its formal parameters.Indexers are similar to properties except that their accessors take parameters.Accessors of interface indexers use modifiers.The type of an indexer and the type of its parameters must be at least as accessible as the indexer itself.An interface accessor contains a body.
MCQ
5