Mascot Previous Years Solved Sample Placement Papers
-
What type of data can Cookies store?
A. String
B. DateTime
C. System.Int32
D. Data
Ans: A. String -
From the following which is not a valid state management object?
A. Querystate
B. Cookies
C. Application state
D. Hidden form fields
Ans: A. Querystate -
To kill a users session explicitly which of the following will you use?
A. Session.Close()
B. Session.End()
C. Session.Abondon()
D. Session.Discard()
Ans: C. Session.Abondon() -
What ASP.NET object encapsulates the state of the client and the browser?
A. Application Object
B. Session Object
C. Response Object
D. Request Object
Ans: B. Session Object -
Default Session data is stored in ASP.Net.
A. StateServer
B. Session Object
C. InProcess
D. Schedule object
Ans: B. Session Object -
If you are using the DataSet and you have to display the data in sorted order what will you do?
A. Use Sort method of DataTable
B. Use Sort method of DataSet
C. Use DataViev object with each sort
D. Use datapaging and sort the data.
Ans: C. Use DataViev object with each sort -
How do you determine the actual SQL data type of a SqlParameter (the type expected by the SQL Server)?
A. It is the .NET Framework data type in your application that the parameter represents.
B. It is the type of column or data in SQL Server that the command expects.
C. It is the type of column in a DataTable that it represents.
D. It is any type defined in the SqlDbDataType enumeration.
Ans: B. It is the type of column or data in SQL Server that the command expects. -
What are the three primary kinds of parameters?
A. Input, Integer, String
B. Integer, String, DateTime
C. int, varchar, nvarchar
D. Input, Output, InputOutput
Ans: D. Input, Output, InputOutput -
Which SqlCommand execution returns the number of effected records in the table?
A. ExecuteNonQuery
B. ExecuteReader
C. ExecuteXmlReader
D. ExecuteScalar
Ans: A. ExecuteNonQuery -
Which CommandType value is incorrect?
A. StoredProcedure
B. TableDirect
C. TableSchema
D. Text
Ans: C. TableSchema -
Which data provider gives the maximum performance from a connection to SQL Server?
A. The OLE DB data provider.
B. The JDBC data provider.
C. The SqlClient data provider.
D. The Oracle data provider
Ans: C. The SqlClient data provider. -
In a SQL Statement while working with SqlCommand it returns a single value, at that time which method of Command Object will be used?
A. ExecuteNonQuery
B. ExecuteReader
C. ExecuteScalar
D. NonQuery
Ans: C. ExecuteScalar -
You want to secure the connection strings contained within your Web.config file to ensure that no one can open the file easily and see the connection information. Which tool must you use to encrypt the connection strings?
A. ASPNET_WP.EXE
B. ASPNET_REGSQL.EXE
C. ASPNET_REGIIS.EXE
D. ASP.NET SYSTEM
Ans: C. ASPNET_REGIIS.EXE