Became a Gold Member and access 40+ Technology Courses...
Live Help (Start Chat)
Interview Questions and Answer
Options:
a. Balance is readonly property
b. Balance is writeonly property
c. Balance is global variable
d. Balance is readonly and writeonly property
Reveal Answer
Options:
a. ReadOnly access
b. WriteOnly access
c. Either ReadOnly or WriteOnly access
d. None
Reveal Answer
Options:
a. The value of the object is changed.
b. Objects does not have reference
c. When using type casting
d. None of the above
Reveal Answer
Options:
a. copy few parameters
b. create an object by name “copy”
c. create an object by passing an initialized object of the same type
d. There is no copy constructor available
Reveal Answer
Options:
a. When an object is no longer used by the application
b. When program exits
c. When invoked by GC
d. All of the above
Reveal Answer
Options:
a. Compilation error
b. No compilation error but runtime error when this structure is used
c. No compilation error and no runtime error
d. Runtime exception is thrown if this structure is instantiated
Reveal Answer
Options:
a. When the object is created
b. When the class is loaded
c. When the application is started
d. None of the above
Reveal Answer
Options:
a. When the first instance of the class is created
b. When the static member of the class is accessed for the first time
c. Both A and B
Reveal Answer
Options:
a. Constructor
b. Static constructor
c. Static method
d. None of the above
Reveal Answer
Options:
a. To initialize static members of the class
b. To initialize static and instance members of the class
c. Static constructor can be overloaded
d. static constructor must be public
Reveal Answer
Options:
a. Can be accessed globally
b. Instantiated only once
c. Singleton's constructor is set to private so that there be only one instance of this class.
d. All of the above
Reveal Answer
Options:
a. To override the base class method
b. To provide a different implementation of base class sealed method
c. To overload the base class method
d. None of the above
Reveal Answer
Options:
a. The data member takes the precedence over local variable
b. The local variable takes the precedence over data member
c. Not valid
Reveal Answer
Options:
a. Constructor
b. Shared constructor
c. Static constructor
d. None of the above
Reveal Answer
Options:
a. Close
b. Dispose
c. Both a & b
d. None of the above
Reveal Answer
Options:
a. Decides if a method exists at runtime
b. Decides if a method exists at compile time
c. Decides if a method exists once the class is instantiated
d. None of the above
Reveal Answer
Options:
a. System.object
b. System.Data
c. System.web
Reveal Answer
Options:
a. way to encapsulate a set of read-only properties into a single object
b. We can create anonymous types by using the new operator together with an object initialize
c. Type name is generated by the compiler
d. All of the above
Reveal Answer
Options:
a. To represent authenticated users
b. To represent a cookie
c. To represent HttpContext object
d. None of the above
Reveal Answer
Options:
a. Specify data type
b. specify the declared accessibility of a member or a type
c. specify size of the variable
d. the value of the variable
Reveal Answer
Options:
a. properties for validations
b. Methods for functionality
c. Events for depicting the change of state
d. All the above
Reveal Answer
Options:
a. Exhibit an object in different form with the same functionality
b. For the reusability of the code
c. Binding of data and behavior in controlled environment
Reveal Answer
Bestdotnet google plus