- A structure in C# can be derived from one or more
- class
- interface
- both
- none
- State True or False: Static method cannot be overridden
- True
- False
- The Equivalent HTML Control for the tag is
- HtmlInput
- HtmlButton
- HtmlPushButton
- HtmlInputButton
- The Equivalent Html Control for the tag is
- HtmlCheckBox
- HtmlInputChkBox
- HtmlInputCheckBox
- HtmlInputTypeChkBox
- Which operator is used for connecting a event with a procedure in C#?
- +=
- =
- both
- none
- The Equivalent Html Control for the
- State True or False: Events in Web forms are processed before the “Page Load” event
- True
- False
- What namespaces are necessary to create a localized application?
- System.Globalization
- System.Globalization and System.Resources.
- System.Resources.
- System.Array
- A new server-side control can be created by implementing the class ___________
- System.Web.WebControl
- System.Web.UI.WebControl
- System.Web.UI.WebControls.WebControl
- Any one of the above
- The parameter “clienttarget = downlevel” does one of the following
- Adds aliases for specific user agents to an internal collection of user agent aliases
- Indicates the useragents level of validating the controls
- Disables all DHTML events(including Validation controls)
- None of the above
- The methods in C# can be overloaded in which of the following ways
- By having the same method name and specifying different number of parameters
- By giving different method names and same number of parameters
- By having the same method name and specifying different types of parameters
- By giving different method names and same types of parameters
- The RangeValidator control supports the following datatype
- Integer and String
- Integer, Float, String, XMLDatatypes
- Integer, String and Date
- Integer, Boolean, Short, String and Date
- What is the difference between Convert.ToInt32 and int.Parse?
- Both are same and both can handle null value.
- Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
- int.Parse can handle null value but Convert.ToInt32 throws ArgumentNullException error.
- Both Convert.ToInt32 and int.Parse cannot handle null value.
- State True or False: Any ODBC-compliant database can be accessed through ASP.NET
- True
- False
- You need to select a .NET language that has auto-documenting features built into the source code and compiler. Given the scenario above what language compiler should be selected?
- vbc.exe
- cl.exe
- ilasm.exe
- cs.exe
- A set of tables are maintained in a Dataset as
- TablesCollection object
- DataTableCollection object
- DataRowsCollection object
- TableRowCollection object
- The namespaces needed to use data mechanisms in ASP.NET pages are
- System.Data, System.Data.OleDb or System.Data.SQL
- System.Data, System.Data.ODBC
- System.Data, System.Data.DataRow
- System.Data.DataRowCollection, System.Data.DbType
- What are the different methods to access Database in .NET ?
- OleDB,ODBC,SQLClient
- OleDB, JDBC, SQLServer
- ODBC-JDBC, DataSet, SQLClient
- Datasource, DataSet, DSN
- The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
- EnableSorting = “true” and EnablePaging = “true”
- DisableSorting = “false” and DisablePaging = “false”
- AllowSorting = “true” and AllowPaging = “true”
- Sorting = “true” and Paging = “true”
- Which one of the following objects is used to create a foreign key between two DataTables?
- DataRelation
- DataRelationship
- DataConstraint
- DataKey
- The Syntax for data-binding expressions is
- <%# property or collection %>
- <%# property or collection #%>
- <%$ property or collection %>
- <%@ property or collection %>
- The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
- Bind()
- Fill()
- FillData()
- SetData()
- Which of the following operations can you NOT perform on an ADO.NET DataSet?
- A DataSet can be synchronised with the database.
- A DataSet can be synchronised with a RecordSet.
- A DataSet can be converted to XML.
- You can infer the schema from a DataSet
- Which is the correct statement to set the alias name for namespace in C#?
- using System Data.OracleClient = aliasName;
- using aliasName = System.Data.OracleClient;
- string aliasName = using.System.Data.OracleClient;
- Both a & b
- The property that indicates whether existing database constraints should be observed when performing updates
- EnforceConstraints
- Constraints
- GetConstraints
- ConstraintsEnforce
February 10th, 2006 at 6:22 am
1. A structure in C# can be derived from one or more
* class
* interface
* both
* none
Ans: interface.
Like classes, C# struct can also implement from an interface.
Ex:-
// Author: Sasi
Using System;
interface DemoInterface
{
void mDemo();
}
struct DemoStruct : DemoInterface
{
public void mDemo()
{
Console.WriteLine(”Structure Can Implement from Interface :-)”);
}
}
class DemoClass
{
public static void Main()
{
DemoStruct ds = new DemoStruct();
ds.mDemo();
}
}
______________________
Sasi.
February 10th, 2006 at 8:18 am
2. State True or False: Static method cannot be overridden
* True
* False
Ans: True
You cannot override a non-virtual or static method. The overridden base method must be virtual, abstract, or override.
_________________
Sasi.
February 10th, 2006 at 10:38 am
3. The Equivalent HTML Control for the tag is
* HtmlInput
* HtmlButton
* HtmlPushButton
* HtmlInputButton
Ans: HtmlInputButton.
We can use the HtmlInputButton control to program against the , , and HTML elements.
______________________
Sasi.
February 10th, 2006 at 10:43 am
4. The Equivalent Html Control for the tag is
* HtmlCheckBox
* HtmlInputChkBox
* HtmlInputCheckBox
* HtmlInputTypeChkBox
Ans: HtmlInputCheckbox
__________________
Sasi.
February 10th, 2006 at 10:47 am
5. Which operator is used for connecting a event with a procedure in C#?
* +=
* =
* both
* none
Ans: +=
___________
Sasi.
February 10th, 2006 at 10:52 am
6. The Equivalent Html Control for the tag is
*
*
*
*
Ans:
System.Object
System.Web.UI.Control
System.Web.UI.HtmlControls.HtmlControl
System.Web.UI.HtmlControls.HtmlContainerControl
System.Web.UI.HtmlControls.HtmlSelect
_______________
Sasi.
February 15th, 2006 at 5:56 am
9. A new server-side control can be created by implementing the class ___________
* System.Web.WebControl
* System.Web.UI.WebControl
* System.Web.UI.WebControls.WebControl
* Any one of the above
Ans: System.Web.UI.WebControls.WebControl
________
Sasi. :-)
—-
February 23rd, 2006 at 2:31 pm
Q 3 HtmlInputButton
Q4 HtmlInputCheckBox
Q5 +=
Q6 HtmlSelect
Q7 TRUE
Q8 System.Globalization and System.Resources.
Q11 A and C
Q14 true
q15 cs.exe
Q16 A set of DataTableCollection .
Q19 AllowSorting = “true” and AllowPaging = “true”
February 24th, 2006 at 12:29 am
8. What namespaces are necessary to create a localized application?
Ans: System.Resources
February 24th, 2006 at 12:32 am
8.What namespaces are necessary to create a localized application?
Ans: System.Globalization and System.Resources.
February 28th, 2006 at 6:26 am
21. The Syntax for data-binding expressions is
B
February 28th, 2006 at 7:09 am
Q13 - Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error
February 28th, 2006 at 7:16 am
Q21 Ans :-
February 28th, 2006 at 7:23 am
Q22 Ans :- Fill()
Q23 Ans :- A DataSet can be synchronised with a RecordSet.
Q24 Ans :- using aliasName = System.Data.OracleClient;
Q25 Ans :- EnforceConstraints
February 28th, 2006 at 7:33 am
Q12 Ans :- Integer, String and Date
Q20 Ans :- DataConstraint
March 10th, 2006 at 1:32 am
18)ans:a
March 11th, 2006 at 2:40 am
WHAT IS THE DIFF B/W TRIGGER AND VIEWS AND THEIR IMPORTANCE IN DBMS
March 20th, 2006 at 11:12 pm
1 A structure in C# can be derived from one or more
o class
o interface
o both
o none
Answer:
interface
March 20th, 2006 at 11:26 pm
2 State True or False: Static method cannot be overridden
o True
o False
Answer: True
March 20th, 2006 at 11:29 pm
3 The Equivalent HTML Control for the tag is
o HtmlInput
o HtmlButton
o HtmlPushButton
o HtmlInputButton
Answer: HtmlInputButton
March 20th, 2006 at 11:31 pm
4 The Equivalent Html Control for the tag is
o HtmlCheckBox
o HtmlInputChkBox
o HtmlInputCheckBox
o HtmlInputTypeChkBox
Answer: HtmlInputCheckBox
March 20th, 2006 at 11:47 pm
5 Which operator is used for connecting a event with a procedure in C#?
o +=
o =
o both
o none
Answer: +=
March 20th, 2006 at 11:52 pm
6 The Equivalent Html Control for the tag is
o
o
o
o
Answer: HtmlSelect
March 21st, 2006 at 12:10 am
7 State True or False: Events in Web forms are processed before the “Page Load” event
o True
o False
Answer: True
March 21st, 2006 at 12:21 am
8 What namespaces are necessary to create a localized application?
o System.Globalization
o System.Globalization and System.Resources.
o System.Resources.
o System.Array
Answer: System.Globalization and System.Resources
March 21st, 2006 at 1:54 pm
9 A new server-side control can be created by implementing the class ___________
o System.Web.WebControl
o System.Web.UI.WebControl
o System.Web.UI.WebControls.WebControl
o Any one of the above
Answer: System.Web.UI.WebControls.WebControl
March 22nd, 2006 at 3:27 pm
10 The parameter “clienttarget = downlevel” does one of the following
o Adds aliases for specific user agents to an internal collection of user agent aliases
o Indicates the useragents level of validating the controls
o Disables all DHTML events(including Validation controls)
o None of the above
Answer:
None of the above
March 22nd, 2006 at 3:35 pm
11 The methods in C# can be overloaded in which of the following ways
o By having the same method name and specifying different number of parameters
o By giving different method names and same number of parameters
o By having the same method name and specifying different types of parameters
o By giving different method names and same types of parameters
Answer:
By having the same method name and specifying different number of parameters
By having the same method name and specifying different types of parameters
March 22nd, 2006 at 3:40 pm
12 The RangeValidator control supports the following datatype
o Integer and String
o Integer, Float, String, XMLDatatypes
o Integer, String and Date
o Integer, Boolean, Short, String and Date
Answer:
Integer, String and Date
March 22nd, 2006 at 3:53 pm
13 What is the difference between Convert.ToInt32 and int.Parse?
o Both are same and both can handle null value.
o Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
o int.Parse can handle null value but Convert.ToInt32 throws ArgumentNullException error.
o Both Convert.ToInt32 and int.Parse cannot handle null value.
Answer:
Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
March 22nd, 2006 at 4:00 pm
14 State True or False: Any ODBC-compliant database can be accessed through ASP.NET
o True
o False
Answer:
True
March 22nd, 2006 at 4:41 pm
15 You need to select a .NET language that has auto-documenting features built into the source code and compiler. Given the scenario above what language compiler should be selected?
o vbc.exe
o cl.exe
o ilasm.exe
o cs.exe
Answer: cs.exe
March 22nd, 2006 at 5:47 pm
16 A set of tables are maintained in a Dataset as
o TablesCollection object
o DataTableCollection object
o DataRowsCollection object
o TableRowCollection object
Answer:
DataTableCollection object
March 22nd, 2006 at 5:57 pm
17 The namespaces needed to use data mechanisms in ASP.NET pages are
o System.Data, System.Data.OleDb or System.Data.SQL
o System.Data, System.Data.ODBC
o System.Data, System.Data.DataRow
o System.Data.DataRowCollection, System.Data.DbType
Answer:
System.Data, System.Data.OleDb or System.Data.SQL
March 22nd, 2006 at 6:03 pm
18 What are the different methods to access Database in .NET ?
o OleDB,ODBC,SQLClient
o OleDB, JDBC, SQLServer
o ODBC-JDBC, DataSet, SQLClient
o Datasource, DataSet, DSN
Answer:
OleDB,ODBC,SQLClient
March 22nd, 2006 at 6:05 pm
19 The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
o EnableSorting = “true” and EnablePaging = “true”
o DisableSorting = “false” and DisablePaging = “false”
o AllowSorting = “true” and AllowPaging = “true”
o Sorting = “true” and Paging = “true”
Answer:
AllowSorting = “true” and AllowPaging = “true
March 22nd, 2006 at 6:11 pm
20 Which one of the following objects is used to create a foreign key between two DataTables?
o DataRelation
o DataRelationship
o DataConstraint
o DataKey
Answer:
DataRelation
March 22nd, 2006 at 7:42 pm
21 The Syntax for data-binding expressions is
o %# property or collection %
o %# property or collection #%
o %$ property or collection %
o %@ property or collection %
Answer:
%# property or collection %
March 22nd, 2006 at 7:45 pm
22 The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
o Bind()
o Fill()
o FillData()
o SetData()
Answer:
Fill()
March 22nd, 2006 at 8:07 pm
23 Which of the following operations can you NOT perform on an ADO.NET DataSet?
o A DataSet can be synchronised with the database.
o A DataSet can be synchronised with a RecordSet.
o A DataSet can be converted to XML.
o You can infer the schema from a DataSet
Answer:
A DataSet can be synchronised with a RecordSet
March 22nd, 2006 at 8:13 pm
24 Which is the correct statement to set the alias name for namespace in C#?
o using System Data.OracleClient = aliasName;
o using aliasName = System.Data.OracleClient;
o string aliasName = using.System.Data.OracleClient;
o Both a & b
Answer:
using aliasName = System.Data.OracleClient;
March 22nd, 2006 at 8:18 pm
25 The property that indicates whether existing database constraints should be observed when performing updates
o EnforceConstraints
o Constraints
o GetConstraints
o ConstraintsEnforce
Answer:
EnforceConstraints
June 18th, 2006 at 3:08 am
1. A structure in C# can be derived from one or more
class
interface
both
none
Ans-interface
2 State True or False: Static method cannot be overridden
True
False
ans-true
3. The Equivalent HTML Control for the tag is
HtmlInput
HtmlButton
HtmlPushButton
HtmlInputButton
ans-htmlInputButton
4. The Equivalent Html Control for the tag is
HtmlCheckBox
HtmlInputChkBox
HtmlInputCheckBox
HtmlInputTypeChkBox
ans-HtmlInputCheckbox
5. Which operator is used for connecting a event with a procedure in C#?
+=
=
both
none
ans- +=
6. The Equivalent Html Control for the tag is
ans-HtmlSelect
7. State True or False: Events in Web forms are processed before the “Page Load” event
True
False
ans-true
8. What namespaces are necessary to create a localized application?
System.Globalization
System.Globalization and System.Resources.
System.Resources.
System.Array
ans-System.Globalization and System.Resources
9. A new server-side control can be created by implementing the class ___________
System.Web.WebControl
System.Web.UI.WebControl
System.Web.UI.WebControls.WebControl
Any one of the above
ans-System.Web.UI.WebControls.WebControl
July 4th, 2006 at 9:42 am
WHAT IS THE DIFF B/W TRIGGER AND VIEWS AND THEIR IMPORTANCE IN DBMS
the answer for this is that trigger is action which we wanna to happen while doin an action such as inserting into database
views are just used to display and update the database
August 22nd, 2006 at 4:52 am
A set of tables are maintained in a Dataset as
TablesCollection object
August 22nd, 2006 at 4:54 am
The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
Fill()
August 29th, 2006 at 5:39 am
7. State True or False: Events in Web forms are processed before the “Page Load” event
True
False
Answer - True
November 22nd, 2006 at 11:37 am
Can I create my own metadata attributes?
December 13th, 2006 at 10:19 pm
A static method in C# CAN be overridden in a derived class by using the “new” keyword in the declaration of the overriding method.
January 19th, 2007 at 9:17 am
Verified via MSDN:
Stephany is correct on these two:
20 Which one of the following objects is used to create a foreign key between two DataTables?
o DataRelation
o DataRelationship
o DataConstraint
o DataKey
Answer:
DataRelation (NOT DataConstraint as stated by others in this thread)
21 The Syntax for data-binding expressions is
o %# property or collection %
o %# property or collection #%
o %$ property or collection %
o %@ property or collection %
Answer:
%# property or collection % (i.e. no ending #)
January 23rd, 2007 at 11:47 am
The two properties of a DataGrid that has to be specified to turn on sorting and paging respectively are
AllowSorting = “true” and AllowPaging = “true”
Which one of the following objects is used to create a foreign key between two DataTables?
DataRelation
The Syntax for data-binding expressions is
The method that need to be invoked on the DataAdapter control to load the generated dataset with data is
Fill()
March 10th, 2007 at 1:35 am
Which one of the following objects is used to create a foreign key between two DataTables?
DataRelation
DataRelationship
DataConstraint
DataKey
Ans: DataConstraint
March 24th, 2007 at 1:50 pm
Correct answer for question
* Which one of the following objects is used to create a foreign key between two DataTables?
is a) DataRelation
March 27th, 2007 at 3:01 pm
WHAT IS THE DIFF B/W TRIGGER AND VIEWS AND THEIR IMPORTANCE IN DBMS
Trigers are doing some action, but views are holding some sql queries in the SQL Server or in another database server. And when you use Views, you just write some simple query instead of huge one, which is beeing hold in the View.
April 12th, 2007 at 4:00 am
#10. Disables all DHTML events(including Validation controls)
If, for whatever reason, you want to disable client-side form validation, you can do so by adding the following directive at the top of your page -
OR
April 12th, 2007 at 4:02 am
/* */
April 12th, 2007 at 4:08 am
#13. What is the difference between Convert.ToInt32 and int.Parse?
B. Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
April 12th, 2007 at 4:12 am
#17: The namespaces needed to use data mechanisms in ASP.NET pages are
A: System.Data, System.Data.OleDb or System.Data.SQL
#18. What are the different methods to access Database in .NET ?
A: OleDB,ODBC,SQLClient
June 25th, 2007 at 4:42 am
Q22 Ans :- Fill()
Q23 Ans :- A DataSet can be synchronised with a RecordSet.
Q24 Ans :- using aliasName = System.Data.OracleClient;
August 16th, 2007 at 12:12 am
NTS said,
Q22 Ans :- Fill()
Q23 Ans :- A DataSet can be synchronised with a RecordSet.
Q24 Ans :- using aliasName = System.Data.OracleClient;
August 16th, 2007 at 1:30 pm
1)select cast(get date() as text) returns
2)IDENT-current returns
3)following is not a valid method of HTTP server utility class
a)execute b)transfer c)mappath
3) the following cannot be declared using partial modifier
a)struct b)enum c)interface d)class
November 29th, 2007 at 7:17 am
Which is the correct statement to set the alias name for namespace in C#?
using System Data.OracleClient = aliasName;
using aliasName = System.Data.OracleClient;
string aliasName = using.System.Data.OracleClient;
Both a & b
Ans:using System Data.OracleClient = aliasName;
January 8th, 2008 at 6:10 am
what is the meaning of pipeline in asp.net