DotNet Technology MCQs | Page - 3
Dear candidates you will find MCQ questions of DotNet Technology here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
β
Correct Answer: (D)
All of the above can be used
Q. Which access modifiers are used in the concept of a property?
β
Correct Answer: (A)
Get / set
Q. What is used to validate complex string patterns like an e-mail address?
β
Correct Answer: (C)
Regular Expression Validator
Q. Which of the following statements is correct about constructors?
β
Correct Answer: (D)
If we do not provide a constructor, then the compiler provides a zeroargument constructor.
Q. How many times can a constructor be called during lifetime of the object?
β
Correct Answer: (B)
Only once.
Q. A property can be declared inside a class, struct, Interface.
β
Correct Answer: (A)
True
Q. A property can be declared inside a namespace or a procedure.
β
Correct Answer: (B)
False
Jump to