Set - 7

Question 1 :

Why does my Windows application pop up a console window every time I run it?

Answer :

Make sure that the target type set in the project properties setting is set to Windows Application, and not Console Application. If you're using the command line, compile with /target:winexe & not target:exe.

Question 2 :

What is the wildcard character in SQL?

Answer :

Let us say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve La%.

Question 3 :

What is the role of the DataReader class in ADO.NET connections?

Answer :

It returns a read-only dataset from the data source when the command is executed.

Question 4 :

What does the This window show in the debugger?

Answer :

It points to the object that is pointed to by this reference. Object's instance data is shown.

Question 5 :

Describe the accessibility modifier protected internal?

Answer :

It is available to derived classes and classes within the same Assembly (and naturally from the base class it is declared in).