ASP.NET and C# Web Development Fundamentals

Questions covering ASP.NET controls, C# programming, .NET framework concepts, and web technologies including HTTP, DOM, and web services.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How do enable output cache for an ASP.Net page?

  1. <%@ PageCache Duration="60" %>
  2. <%@ OutputCache Duration="60" %>
  3. <%@ Cache Duration="60" %>
  4. <%@ SessionCache Duration="60" %>
Question 2 Multiple Choice (Single Answer)

Whats the top .NET class that everything is derived from?

  1. System.Object
  2. System.Page
  3. System.Web
  4. System.Namespace
Question 3 True/False

Can you store multiple data types in System.Array?

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

Is it possible to add object in ViewState in .NET?

  1. Not Possible
  2. Always Possible
  3. Only If object have Serializable feature or have TypeConverter option
  4. Only if object is an String
Question 5 Multiple Choice (Single Answer)

What is the default port for Http?

  1. 8081
  2. 80
  3. 7071
  4. 500
Question 6 Multiple Choice (Single Answer)

How can we maintain the page scroll position after postback?

  1. Set PositionOnPostback as true in Page directive
  2. Set MaintainScrollPositionOnPostback as true in Page directive
  3. Set ViewState as true in Page directive
  4. Not Possible
Question 7 Multiple Choice (Single Answer)

Which of the following Protocols can be used to call a Web Services in Asp.net?

  1. Http-Post
  2. Http-Get
  3. SOAP
  4. All the above
Question 8 Multiple Choice (Single Answer)

How to get last month date from C# code?

  1. DateTime.Now.PreviousMonth;
  2. DateTime.Now.CurrentMonth - 1;
  3. DateTime.Now.AddMonths(-1);
  4. DateTime.Now.AddMonths(1);
Question 9 Multiple Choice (Single Answer)

What is DOM?

  1. Data Object Model
  2. Document Object Model
  3. Derived Object Model
  4. None of the above
Question 10 Multiple Choice (Single Answer)

How to create an alias name for a namespace in C#?

  1. using AliasName = System.Text;
  2. using System.Text AliasName;
  3. Alias System.Text AliasName;
  4. Not Possible
Question 11 Multiple Choice (Single Answer)

How can we get Client IP Address in ASP.NET?

  1. Request.ClientAddress
  2. Request.UserHostAddress
  3. Request.IPAddress
  4. Request.Client.IPAddress
Question 12 True/False

Private, Protected, Public, Internal, Protected Internal are the access specifiers?

  1. True
  2. False
Question 13 True/False

Only Abstract class, Static class and Sealed class are in .Net

  1. True
  2. False
Question 14 True/False

An assembly is the basic unit used by the .NET CLR

  1. True
  2. False
Question 15 True/False

DLL and assembly are same

  1. True
  2. False
Question 16 True/False

ADO Record set can hold multiples tables data.

  1. True
  2. False
Question 17 True/False

Multiple catch blocks cannot be executed for a single try statement

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

Once ASP.NET automatically parses and compiles the global.asax file into a dynamic .NET Framework class, which base class is extended?

  1. ASPApplication
  2. HttpsApplication
  3. ASPNETApplication
  4. NETApplication
  5. HttpApplication
Question 19 Multiple Choice (Single Answer)

You develop a page expecting a DataGrid to appear upon rendering, but it does not appear when you run the application. What is the likely explanation for the problem in the above scenario?

  1. The DataGrid control is not bound to its DataTable property.
  2. The DataGrid control is not bound to the table Header
  3. The DataGrid control is not bound to its DataSource property.
  4. The DataGrid control is not bound to its DataKeyField property
  5. The DataGrid control is not bound to its DataKeys property.