Placement papers on Csharp - Set 2

Placement papers on Csharp - Set 2


1. Can you store multiple data types in System.Array?

No
Yes
View Answer / Hide Answer

ANSWER: Yes




2. Which of the following is incorrect about System.Text.StringBuilder and System.String?

StringBuilder is more efficient when there is a large amount of string manipulation
Strings are immutable, so each time a string is changed, a new instance in memory is created.
StringBuilder is mutable; when you modify an instance of the StringBuilder class, you modify the actual string, not a copy
Strings are mutable in .Net
View Answer / Hide Answer

ANSWER: Strings are mutable in .Net




3. What is MSIL?

Multi Socket Interface Library
Microsoft Intermediate Language
Microsoft Interface Language
Microsoft Integer Long
View Answer / Hide Answer

ANSWER: Microsoft Intermediate Language




4. An assembly is

A collection of files that appear to the programmer to be a single DLL or EXE.
properties of c#
events Of c#
declarative syntax of Java
View Answer / Hide Answer

ANSWER: A collection of files that appear to the programmer to be a single DLL or EXE.




5. Which of following is correct:

enum Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
Day enum{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
enumeration Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}
View Answer / Hide Answer

ANSWER: enum Day{Sunday= 01,Monday= 02,Tuesday= 03,Wednesday=04,Thursday= 05,Friday= 06,Saturday=07}




6. In C#, by default structs are passed how?

By memory.
By value.
By reference.
By address.
View Answer / Hide Answer

ANSWER: By value.




7. What is boxing?

Encapsulating an object in a value type.
Encapsulating a copy of an object in a value type.
Encapsulating a value type in an object.
Encapsulating a copy of a value type in an object.
View Answer / Hide Answer

ANSWER: Encapsulating a copy of a value type in an object.




8. Which property will you use to process different server paths in a page?

Request
Response
Server
Application
View Answer / Hide Answer

ANSWER: Server



Post your comment