Labels

Monday, August 18, 2008

Latest MSDN Flash Questions

Jan 02, 2008

1. What is the default value for the Char type?

(A) "0'

(B) ''

(C) '\0'

(D) null

Ans: (C) '\0'

2. Which type of class can you develop to alter SOAP messages sent to and from an XML Web service and client?

(A) SOAP Messages

(B) SOAP Alterations

(C) SOAP Configurations

(D) SOAP Extensions

3. In C#, what character is used to indicate a verbatim string literal?

(A) @

(B) !

(C) "

(D) #

--------------------------------------------------------------------------------------------------------------------------------------------------------

Jan 22, 2008

1. What does the acronym CLS stand for?

(A) Common Language Standard

(B) Common Language Specification

(C) Component Language Standard

(D) Component Language Specification

Ans: (B) Common Language Specification

2. What is the comment syntax for C#'s XML-based documentation?

(A) /** and **/

(B) //#

(C) ///

(D) //*

Ans: (C) ///

3. Which C# statement is actually a shortcut for calling the Enter and Exit methods of the Monitor class?

(A) mutex

(B) lock

(C) semaphore

(D) thread

--------------------------------------------------------------------------------------------------------------------------------------------------------

Feb 15, 2008

1. What is the default value for the Char type?

(A) '0' (B) '' (C) '\0' (D) null

Ans: (C) '\0'

2. Which of the following is a value type, and not a reference type?

(A) array (B) delegate (C) enum (D) class

Ans: (C) enum

3. What is the default version of an assembly?

(A) 1:0:1:0 (B) 1:0:0:1 (C) 1:0:0:0 (D) 1:0:1:1

Ans: (C) 1:0:0:0

--------------------------------------------------------------------------------------------------------------------------------------------------------

Feb 28, 2008

1. Shared assemblies are installed where?

(A) System Assembly Cache (B) Global Assembly Cache

(C) Machine Assembly Cache (D) Windows Assembly Cache

Ans: (B) Global Assembly Cache

2. Which of the following is not a method of System.Object?

(A) GetType (B) ToString (C) Equals (D) Clone

Ans: (D) Clone

3. What is the term used to describe the process the Runtime uses to find an assembly?

(A) Locating (B) Probing (C) Searching (D) Resolving

Ans: (B) Probing

--------------------------------------------------------------------------------------------------------------------------------------------------------

Mar 18, 2008

1. In C#, what character is used to indicate a verbatim string literal?

(A) @ (B) ! (C) " (D) #

2. Which interface allows a collection to be navigated using the foreach statement?

(A) INavigator (B) ICollection (C) IEnumerator (D) IEnumerable

3. In C#, which of the following is not a valid C# jump statement?

(A) jump (B) goto (C) return (D) throw


Ans: (A) Jump

--------------------------------------------------------------------------------------------------------------------------------------------------------

May 20, 2008

1. To modify a SOAP message in a SOAP extension, what method must you override?

(A) ChainStream (B) ReceiveMessage
(C)
ProcessMessage (D) SoapMessage

Ans: (A) ChainStream

2. Pick the command line that would result in the C# compiler generating an XML documentation file:

(A) csc /doc:HelloWorld.xml HelloWorld.cs
(B)
csc /doc /docfile:HelloWorld.xml HelloWorld.c
(C) csc /doc /out:HelloWorld.xml HelloWorld.cs
(D)
csc /xml HelloWorld.cs

(A) csc /doc:HelloWorld.xml HelloWorld.cs

3. All types derive from a single base type called:

(A) System.Base (B) System.Object
(C) System.Root (D) System.Type

(B) System.Object

--------------------------------------------------------------------------------------------------------------------------------------------------------

June 03, 2008

1. To add performance counters to your .Net application, you would use:

(A) Windows.Diagnostics (B) System.PerformanceCounter

(C) System.Diagnostics (D) App.PerformanceCounter

2. Configuration files for .Net applications are in what format?

(A) XML (B) XHTML (C) ASPX (D) CS

3. CLR stands for:

(A) Code Language Runtime

(B) Common Loading Runtime

(C) Common Language Runtime

(D) Code Loading Runtime

--------------------------------------------------------------------------------------------------------------------------------------------------------

1. To add performance counters to your .Net application, you would use:
Ans: (C) System.Diagnostics

1. What is the default value for the Char type?
Ans: (D) Null


July 08, 2008


1. In SQL Server, if you want to track date and time of the last time access, you will:

(A) Add a time stamp to the table (B) Insert a Trigger field in the table (C) Add a datetime column to the table and write a trigger that sets its value (D) Insert a unique identifier column to the table

Ans: (C)


2. In C#, the use of system.string is more efficient than string, for memory usage and performance?

(A) True (B) False (C) Both perform equally

Ans: (C)


3. In C#, every method must have a name. Is this True or False?

(A) True (B) False (C) True for C#2.0, False for C# 3.0

Ans: (B) - False


July 15, 2008

Are you up-to-date with your programming language? Try this trivia to find out.


1. In Visual Studio 2008, how many types of Intellisense can be implemented in the language services?:

(A) 2 (B) None (C) 4 (D) 3

Ans: (C) : 4


2. Chars and strings in .Net are:

(A) 64-bit (B) 16-bit (Unicode/UTF-16) (C) 8-bit

(B) 16-bit


3. Does C# support multiple inheritance?

(A) Yes (B) No (C) True for C#2.0, False for C# 3.0

Ans: (B) No


Aug 05, 2008

Are you up-to-date with your programming language? Try this trivia to find out.


1. Which of the following will NOT have to be re-architected during a VB 6-to-VB.NET migration?

(A) DHTML Pages (B) ActiveX docs (C) OLE controls (D) ADO to ADO over interlop

Ans: (D) : ADO to ADO over Interlop


2. In .Net C#, to which event handler will you add code to validate data before a form is closed?

(A) Closing (B) Closed (C) Deactivate

Ans: (A) Closing


3. When creating an application in .Net for multiple cultures, what should you do during initial design of the application, but before implementing other languages?

(A) Set Localizable property to True (B) Set language property to English (C) Set Text property to English

Ans: (A) Set Localizable Property to True


Thanks & Regards,

Arun Manglick || Senior Tech Lead


1 comment:

  1. Sorry to say, but the answer to the question "1. In SQL Server, if you want to track date and time of the last time access, you will:" seems to be wrong.

    You can have time stamp column in the table but you cant explicitly set its value. Its values gets set when you insert a new record.

    So how can you have a trigger to set the time stamp column value? Can you explain it?

    Thanks.

    ReplyDelete