gs gs108 Indexers and Exception Handling - Introduction of Properties - Quiz No.1

gs gs108 CSharp Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs108 CSharp of gs organization. We have 110 quizzes available related to the book/course CSharp. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Indexers and Exception Handling. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 1: Choose the wrong statement about the properties used in C#.NET?
Question 2: Choose the statements which makes use of essential properties rather than making data member public in C#.NET?
Question 3: Where the properties can be declared?
Question 4: Select the modifiers which can be used with the properties?
Question 5: Choose the correct statements about write-only properties in C#.NET?
Question 6: Consider a class maths and we had a property called a sum.b is a reference to a maths object and we want the statement b.sum = 10 to fail. Which of the following is the correct solution to ensure this functionality?
Question 7: Consider a class maths and we had a property called as sum.b which is the reference to a maths object and we want the statement Console.WriteLine(b.sum)to fail. Which among the following is the correct solution to ensure this functionality?
Question 8: Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the code below to work. Which is the correct solution to ensure this functionality?

 b.maths = 10; Console.WriteLine(b.maths); 
Question 9: If math class had add property with get and set accessors, then which of the following statements will work correctly?
Question 10: If the math class had add property with get accessors then which of the following statements will work correctly?


Online Quizzes of gs108 CSharp

Other LANG related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background