<<12
6.

Which statements is correct about encapsulation in C#?


A) Encapsulation means, enclosing items within a physical or logical package.

B) Encapsulation, in OOPS (Object Oriented Programing System), prevents access to implementation details.

C) Encapsulation enables a programmer to implement the desired level of abstraction.

D) All of the above.



7.

In C#, which operator determines whether an object is of a certain type?


A) ?:

B) is

C) as

D) *



8.

Which function converts a type to date-time structures in C#?


A) ToString

B) ToSingle

C) ToChar

D) ToDateTime



9.

Which function converts a type to a byte value in C#?


A) ToSingle

B) ToByte

C) ToChar

D) ToDateTime



10.

Which statement is correct about variable naming conventions in C#?


A) It should not be a C# keyword.

B) It must not contain any embedded space or symbol such as? - + ! @ # % ^ & * ( ) [ ] { }

C) Both of the above.

D) None of the above.



<<12