This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Are All The Different Authentication Techniques Used To Connect To Ms Sql Server? |
|
Answer» SQL Server should authenticate before performing any activity in the database. There are two types of authentication: SQL Server should authenticate before performing any activity in the database. There are two types of authentication: |
|
| 2. |
What Are The Methods Of Xml Dataset Object? |
|
Answer» There are various methods of XML DATASET object: There are various methods of XML dataset object: |
|
| 3. |
Do We Use Stored Procedure In Ado.net? |
|
Answer» YES, stored PROCEDURES are used in ADO.Net and it can be used for COMMON repetitive functions. Yes, stored procedures are used in ADO.Net and it can be used for common repetitive functions. |
|
| 4. |
Which Provider Is Used To Connect Ms Access, Oracle, Etc…? |
|
Answer» OLEDB Provider and ODBC Provider are USED to CONNECT to MS Access and Oracle. Oracle Data Provider is also used to connect EXCLUSIVELY for oracle database. OLEDB Provider and ODBC Provider are used to connect to MS Access and Oracle. Oracle Data Provider is also used to connect exclusively for oracle database. |
|
| 5. |
Is It Possible To Load Multiple Tables In A Dataset? |
|
Answer» YES, it is possible to LOAD multiple TABLES in a single dataset. Yes, it is possible to load multiple tables in a single dataset. |
|
| 6. |
What Is The Difference Between Command And Commandbuilder Object? |
|
Answer» Command is used to execute all kind of queries like DML and DDL. DML is nothing but INSERT, Update and DELETE. DDL are like Create and DROP tables. Command is used to execute all kind of queries like DML and DDL. DML is nothing but Insert, Update and Delete. DDL are like Create and drop tables. |
|
| 7. |
What Is The Difference Between Dataset.clone And Dataset.copy? |
|
Answer» Dataset.clone OBJECT copies structure of the dataset INCLUDING SCHEMAS, relations and constraints. This will not copy DATA in the table. Dataset.clone object copies structure of the dataset including schemas, relations and constraints. This will not copy data in the table. |
|
| 8. |
What Are All The Different Methods Under Sql Command? |
|
Answer» There are DIFFERENT METHODS under SqlCommand and they are: There are different methods under SqlCommand and they are: |
|
| 9. |
What Are All The Commands Used With Data Adapter? |
|
Answer» DataAdapter is USED to retrieve data from a data SOURCE .Insertcommand, UpdateCommand and DeleteCommand are the commands OBJECT used in DataAdapter to MANAGE update on the database. DataAdapter is used to retrieve data from a data source .Insertcommand, UpdateCommand and DeleteCommand are the commands object used in DataAdapter to manage update on the database. |
|
| 10. |
What Are The Different Execute Methods Of Ado.net? |
|
Answer» FOLLOWING are different execute methods of ADO.Net command object: Following are different execute methods of ADO.Net command object: |
|
| 11. |
What Are The Differences Between Oledb And Sqlclient Providers? |
|
Answer» OLEDB provider is USED to access any DATABASE and provides flexibility of changing the database at any TIME. SQLClient provider is used to access only SQL Server database but it provides excellent performance than OLEDB provider while connecting with SQL Server database. OLEDB provider is used to access any database and provides flexibility of changing the database at any time. SQLClient provider is used to access only SQL Server database but it provides excellent performance than OLEDB provider while connecting with SQL Server database. |
|
| 12. |
What Are All Components Of Ado.net Data Provider? |
|
Answer» Following are the COMPONENTS of ADO.Net DATA provider: Following are the components of ADO.Net Data provider: |
|
| 13. |
What Are All The Classes That Are Available In System.data Namespace? |
|
Answer» Following are the CLASSES that are AVAILABLE in System.Data NAMESPACE:
Following are the classes that are available in System.Data Namespace: |
|
| 14. |
Which Is The Best Method To Get Two Values From The Database? |
|
Answer» EXECUTENONQUERY is the best method to get TWO values from the DATABASE. ExecuteNonQuery is the best method to get two values from the database. |
|
| 15. |
Which Object Is Used To Add Relationship Between Two Datatables? |
|
Answer» DATARELATION OBJECT is used to add relationship between TWO or more DATATABLE objects. DataRelation object is used to add relationship between two or more datatable objects. |
|
| 16. |
Which Method Is Used To Sort The Data In Ado.net? |
|
Answer» SORT() METHOD of GridViewControl is USED to sort the DATA in a DATATABLE. Sort() method of GridViewControl is used to sort the data in a datatable. |
|
| 17. |
How To Stop Running Thread? |
|
Answer» THREAD.Abort() FUNCTION STOPS the thread EXECUTION at any TIME. Thread.Abort() function stops the thread execution at any time. |
|
| 18. |
What Are Typed And Untyped Dataset? |
|
Answer» Typed datasets use explicit NAMES and data types for their MEMBERS but untyped DATASET USES table and COLUMNS for their members. Typed datasets use explicit names and data types for their members but untyped dataset uses table and columns for their members. |
|
| 19. |
What Is Linq? |
|
Answer» Language Integrated QUERY or LINQ provides programmers and testers to query data and it USES STRONGLY type’s queries and RESULTS. Language Integrated Query or LINQ provides programmers and testers to query data and it uses strongly type’s queries and results. |
|
| 20. |
What Are The Classes In System.data.common Namespace? |
|
Answer» There are TWO CLASSES INVOLVED in System.Data.Common Nameapce:
There are two classes involved in System.Data.Common Nameapce: |
|
| 21. |
What Is The Default Time Out For Sql Command.commandtimeout Property? |
|
Answer» The default timeout of SQLCOMMAND. CommandTimeout PROPERTY is 30 Seconds. The default timeout of Sqlcommand. CommandTimeout property is 30 Seconds. |
|
| 22. |
What Are The Uses Of Stored Procedure? |
|
Answer» Following are uses of Stored Procedure:
Following are uses of Stored Procedure: |
|
| 23. |
What Are The Data Providers In Ado.net? |
|
Answer» FOLLOWING are the Data PROVIDERS used in ADO.Net:. Following are the Data Providers used in ADO.Net:. |
|
| 24. |
What Are Different Layers Of Ado.net? |
|
Answer» There are three DIFFERENT layers of ADO.Net:
There are three different layers of ADO.Net: |
|
| 25. |
Explain In Brief Dataadapter Class In Ado.net? |
|
Answer» The DataAdapter class retrieves DATA from the DATABASE, stores data in a DATASET, and reflects the changes made in the dataset to the database. The DataAdapter class acts as an intermediary for all the communication between the database and the DataSet object. The DataAdapter Class is used to fill a DataTable or DataSet Object with data from the database using the Fill() METHOD. The DataAdapter class applies the changes made in dataset to the database by calling the UPDATE() method. The DataAdapter class retrieves data from the database, stores data in a dataset, and reflects the changes made in the dataset to the database. The DataAdapter class acts as an intermediary for all the communication between the database and the DataSet object. The DataAdapter Class is used to fill a DataTable or DataSet Object with data from the database using the Fill() method. The DataAdapter class applies the changes made in dataset to the database by calling the Update() method. |
|
| 26. |
How Can You Add Or Remove Rows From The Datatable Object Of Dataset? |
|
Answer» The DataRowCollection class defines the collection of rows for the DataTable object in a DataSet. The DataTable class provides the NewRow() method to ADD a new DataRow to DataTable. The NewRow method CREATES a new row, which implements the same SCHEMA as applied to the DataTable. The FOLLOWING are the methods provided by the DataRowCollection object: The DataRowCollection class defines the collection of rows for the DataTable object in a DataSet. The DataTable class provides the NewRow() method to add a new DataRow to DataTable. The NewRow method creates a new row, which implements the same schema as applied to the DataTable. The following are the methods provided by the DataRowCollection object: |
|
| 27. |
What Are The Parameters That Control Most Of Connection Pooling Behaviours? |
|
Answer» The parameters that CONTROL most of connection pooling behaviors are as FOLLOWS: The parameters that control most of connection pooling behaviors are as follows: |
|
| 28. |
What Is The Use Of Dataview? |
|
Answer» User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be PRESENTED by an object of the DataView class. You can use this class to sort and find data within DataTable. User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be presented by an object of the DataView class. You can use this class to sort and find data within DataTable. |
|
| 29. |
What Is The Difference Between The Clone() And Copy() Methods Of The Dataset Class? |
|
Answer» The CLONE() method copies only the STRUCTURE of a DATASET. The COPIED structure includes all the relation, constraint, and DataTable schemas USED by the DataSet. The Clone() method does not copy the data, which is stored in the DataSet. The Clone() method copies only the structure of a DataSet. The copied structure includes all the relation, constraint, and DataTable schemas used by the DataSet. The Clone() method does not copy the data, which is stored in the DataSet. |
|
| 30. |
Describe The Disconnected Architecture Of Ado.net's Data Access Model? |
|
Answer» ADO.NET MAINTAINS a disconnected database access model, which means, the application never remains CONNECTED constantly to the data source. Any changes and operations done on the data are saved in a LOCAL copy (DATASET) that acts as a data source. Whenever, the connection to the server is re-established, these changes are SENT back to the server, in which these changes are saved in the actual database or data source. ADO.NET maintains a disconnected database access model, which means, the application never remains connected constantly to the data source. Any changes and operations done on the data are saved in a local copy (dataset) that acts as a data source. Whenever, the connection to the server is re-established, these changes are sent back to the server, in which these changes are saved in the actual database or data source. |
|
| 31. |
Explain The Architecture Of Ado.net In Brief. |
|
Answer» AD0.NET consists of two FUNDAMENTAL components:
The data provider contains the Connection, Command, DATAREADER, and DataAdapter objects.The Connection object provides connectivity to the database. The Command object provides access to database commands to RETRIEVE and manipulate data in a database. The DataReader object retrieves data from the database in the readonly and forward-only mode. The DataAdapter object uses Command objects to execute SQL commands. The DataAdapter object loads the DataSet object with data and also updates changes that you have MADE to the data in the DataSet object back to the database. AD0.NET consists of two fundamental components: The data provider contains the Connection, Command, DataReader, and DataAdapter objects.The Connection object provides connectivity to the database. The Command object provides access to database commands to retrieve and manipulate data in a database. The DataReader object retrieves data from the database in the readonly and forward-only mode. The DataAdapter object uses Command objects to execute SQL commands. The DataAdapter object loads the DataSet object with data and also updates changes that you have made to the data in the DataSet object back to the database. |
|
| 32. |
What Are The Usages Of The Command Object In Ado.net? |
|
Answer» The following are the usages of the Command object in AD0.NET:
The following are the usages of the Command object in AD0.NET: |
|
| 33. |
What Are The Pre-requisites For Connection Pooling? |
|
Answer» The PREREQUISITES for connection POOLING are as FOLLOWS:
The prerequisites for connection pooling are as follows: |
|
| 34. |
What Is Connection Pooling? |
|
Answer» Connection pooling refers to the task of grouping database CONNECTIONS in cache to make them reusable because opening new connections every TIME to a database is a time-consuming process. THEREFORE, connection pooling enables you to reuse already existing and active database connections, whenever required, and increasing the performance of your application. Connection pooling refers to the task of grouping database connections in cache to make them reusable because opening new connections every time to a database is a time-consuming process. Therefore, connection pooling enables you to reuse already existing and active database connections, whenever required, and increasing the performance of your application. |
|
| 35. |
What Are The Various Methods Provided By The Dataset Object To Generate Xml? |
|
Answer» The various METHODS provided by the DataSet object to generate XML are:
The various methods provided by the DataSet object to generate XML are: |
|
| 36. |
How Can You Identify Whether Or Not Any Changes Are Made To The Dataset Object Since It Was Last Loaded? |
|
Answer» The DataSet OBJECT provides the following two methods to TRACK down the CHANGES: The DataSet object provides the following two methods to track down the changes: |
|
| 37. |
What Is A Datareader Object? |
|
Answer» The DataReader object helps in retrieving the DATA from a database in a forward-only, read-only mode. The base class for all the DataReader objects is the DbDataReader class. The DataReader object helps in retrieving the data from a database in a forward-only, read-only mode. The base class for all the DataReader objects is the DbDataReader class. |
|
| 38. |
What Is The Role Of The Dataset Object In Ado.net? |
|
Answer» One of the major component of ADO.NET is the DATASET object, which always REMAINS DISCONNECTED from the database and reduces the LOAD on the database. One of the major component of ADO.NET is the DataSet object, which always remains disconnected from the database and reduces the load on the database. |
|
| 39. |
What Is Partial Class? |
|
Answer» A Partial class is a class that can be split into two or more CLASSES. This means that a class can be physically SEPARATED into other parts of the class within the same namespace. All the parts must use the partial keyword. All the other classes should also have the same access modifier. At the COMPILE time, all the partial classes will be treated as a single class. LET us list some advantages of having partial classes. A Partial class is a class that can be split into two or more classes. This means that a class can be physically separated into other parts of the class within the same namespace. All the parts must use the partial keyword. All the other classes should also have the same access modifier. At the compile time, all the partial classes will be treated as a single class. Let us list some advantages of having partial classes. |
|
| 40. |
How Can We Load Multiple Tables In To Dataset? |
|
Answer» DATASET DS=new DataSet(); DataSet ds=new DataSet(); |
|
| 41. |
What Is The Difference Between Oledb Provider And Sqlclient? |
|
Answer» With respect to usage, there is no difference between OLEDB PROVIDER and SQLCLIENT. The difference lies in their performance. SqlClient is explicitly used to connect your application to SQL server directly, OLEDB Provider is generic for VARIOUS DATABASES, such as Oracle and ACCESS including SQL Server.Therefore, there will be an overhead which leads to performance degradation. With respect to usage, there is no difference between OLEDB Provider and SqlClient. The difference lies in their performance. SqlClient is explicitly used to connect your application to SQL server directly, OLEDB Provider is generic for various databases, such as Oracle and Access including SQL Server.Therefore, there will be an overhead which leads to performance degradation. |
|
| 42. |
What Property Must Be Set And What Method Must Be Called In Your Code To Bind The Data From Some Data Source To The Repeater Control? |
|
Answer» You must SET the DATASOURCE PROPERTY and call the DataBind() method.Mention the NAMESPACE that is used to include .NET Data Provider for SQL server in .NET code.The System.Data.SqlClient namespace. You must set the DataSource property and call the DataBind() method.Mention the namespace that is used to include .NET Data Provider for SQL server in .NET code.The System.Data.SqlClient namespace. |
|
| 43. |
Which Properties Are Used To Bind A Datagridview Control? |
|
Answer» The DataSource property and the DataMember property are USED to BIND a DATAGRIDVIEW control. The DataSource property and the DataMember property are used to bind a DataGridView control. |
|
| 44. |
What Is The Meaning Of Object Pooling? |
|
Answer» OBJECT pooling is a concept of storing a pool (group) of objects in MEMORY that can be reused later as needed. Whenever, a new object is required to create, an object from the pool can be allocated for this request; thereby, minimizing the object creation. A pool can ALSO refer to a group of connections and THREADS. Pooling, THEREFORE, helps in minimizing the use of system resources, improves system scalability, and performance. Object pooling is a concept of storing a pool (group) of objects in memory that can be reused later as needed. Whenever, a new object is required to create, an object from the pool can be allocated for this request; thereby, minimizing the object creation. A pool can also refer to a group of connections and threads. Pooling, therefore, helps in minimizing the use of system resources, improves system scalability, and performance. |
|
| 45. |
What Is Ado.net? |
|
Answer» ADO.NET is a part of the Microsoft .NET Framework. This framework provides the set of classes that deal with data communication between various layers of the software architecture and the database. It provides a continuous access to different data source types such as SQL Server versions 7, 2000, 2005. It also provides connectivity options to data sources through OLE DB and XML. Connectivity may be established with other databases like Oracle, MySQL etc. as well. ADO.NET is a part of the Microsoft .NET Framework. This framework provides the set of classes that deal with data communication between various layers of the software architecture and the database. It provides a continuous access to different data source types such as SQL Server versions 7, 2000, 2005. It also provides connectivity options to data sources through OLE DB and XML. Connectivity may be established with other databases like Oracle, MySQL etc. as well. |
|